BME280 warning: ARDUINO is not defined

hi, i use the BME280 library and i get an annoying warning. Its just a warning but i’d like to get rid of that if possible


Creating /home/oli/project/argon/project/target/1.5.2/argon/platform_user_ram.ld ...
In file included from /home/oli/project/argon/project//src/project:3:0:
/home/oli/project/argon/project/lib/Adafruit_BME280/src/Adafruit_BME280.h:24:6: warning: "ARDUINO" is not defined [-Wundef]
 #if (ARDUINO >= 100)

as ARDUINO is not defined i’m wondering if i could just add this to my project

#define ARDUINO 0

the code that leads to the warning is this in the BME280.h file:

#if (ARDUINO >= 100)
#include "Arduino.h"
#include "WProgram.h"

You can add #include <Arduino.h> which will provide a compatibility layer to the Particle “dialect” of Wiring.

BTW, if you did #define ARDUINO 0 then you would activate the #else branch for really old Arduino versions which will not work :wink: