Xplatform changes

This commit is contained in:
fvanroie 2021-02-16 17:12:38 +01:00
parent 63ccab10fa
commit 367458469b

View File

@ -222,36 +222,34 @@ static WiFiSpiClass WiFi;
#include "svc/hasp_slave.h" #include "svc/hasp_slave.h"
#endif #endif
#ifndef FPSTR #ifdef WINDOWS
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer)) #ifndef FPSTR
#endif #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
#endif
#ifndef PGM_P #ifndef __FlashStringHelper
#define PGM_P const char * #define __FlashStringHelper char
#endif #endif
#ifndef __FlashStringHelper #ifndef FPSTR
#define __FlashStringHelper char #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
#endif #endif
#ifndef FPSTR #ifndef PGM_P
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer)) #define PGM_P const char *
#endif #endif
#ifndef PGM_P #ifndef F
#define PGM_P const char * #define F(x) (x)
#endif #endif
#ifndef F #ifndef PSTR
#define F(x) (x) #define PSTR(x) x
#endif #endif
#ifndef PSTR #ifndef PROGMEM
#define PSTR(x) x #define PROGMEM
#endif #endif
#ifndef PROGMEM
#define PROGMEM
#endif #endif
#ifdef WINDOWS #ifdef WINDOWS