Predefined pre-preprocessor directive to differentiate between Arduino IDE and platformio

Hi! Is there some pre-processor directives I can use to differentiate between the Arduino IDE and platformio builds? I’m building multitab sketches and I notice the file structures are different for both linkers. I just want to use them in header guards to have cross platform compatability

There is PLATFORMIO macro when PlatformIO build system works. You can check it with pio run -v

1 Like

I found it under CPPDEFINES when you run pio run -t envdump. I didn’t have much luck when running the verbose output that you’ve suggested.

Is this the exhaustible list before I start defining my own with build flags?