diff --git a/include/hasp_conf.h b/include/hasp_conf.h index d7b666cb..879f61f8 100644 --- a/include/hasp_conf.h +++ b/include/hasp_conf.h @@ -4,6 +4,10 @@ #ifndef HASP_CONF_H #define HASP_CONF_H +#if HASP_TARGET_ARDUINO +#include "Arduino.h" +#endif + #ifdef USE_CONFIG_OVERRIDE #include "user_config_override.h" #endif @@ -207,11 +211,11 @@ #define IRAM_ATTR #endif -#ifndef FPSTR +#if !defined(FPSTR) #define FPSTR(pstr_pointer) (reinterpret_cast(pstr_pointer)) #endif -#ifndef PGM_P +#if !defined(PGM_P) #define PGM_P const char* #endif