Here's one you can try out:https://github.com/me-no-dev/RasPiArduinoThere might be some other similar options.There is also a feature of Arduino Create that allows you to program SBCs like the RPi:https://blog.arduino.cc/2018/03/13/you-can-now-use-arduino-to-program-linux-iot-devices/Unfortunately the official support for those boards is not also available in the Arduino IDE, only the Arduino Web Editor. So if you're set on using the Arduino IDE, you'll need to use a 3rd party hardware package like the one at the first link.
I've never used either option so I can't provide any further information. Maybe someone else here on the forum has experience with this sort of thing and will chime in.
/RF24_config.h:112:0: warning: "_BV" redefined #define _BV(x) (1<<(x))
c:\users\per\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino4\avr\include\avr\sfr_defs.h:208:0: note: this is the location of the previous definition #define _BV(bit) (1 << (bit))
#ifndef _BV#define _BV(x) (1<<(x))#endif