diff --git a/src/ISerial.h b/src/ISerial.h index d34ff09d..908c4ee7 100644 --- a/src/ISerial.h +++ b/src/ISerial.h @@ -1,4 +1,4 @@ -#ifndef _RADIOLIB_ISERIAL_H +#if !defined(_RADIOLIB_ISERIAL_H) #define _RADIOLIB_ISERIAL_H #include "Module.h" @@ -20,7 +20,7 @@ class ISerial { int available(); void flush(); - #ifndef ARDUINO_ARCH_MEGAAVR + #if !defined(ARDUINO_ARCH_MEGAAVR) size_t print(const __FlashStringHelper *); #endif size_t print(const String &); @@ -34,7 +34,7 @@ class ISerial { size_t print(double, int = 2); size_t print(const Printable&); - #ifndef ARDUINO_ARCH_MEGAAVR + #if !defined(ARDUINO_ARCH_MEGAAVR) size_t println(const __FlashStringHelper *); #endif size_t println(const String &s); @@ -49,7 +49,7 @@ class ISerial { size_t println(const Printable&); size_t println(void); -#ifndef RADIOLIB_GODMODE +#if !(defined(RADIOLIB_LOW_LEVEL) || defined(RADIOLIB_GODMODE)) protected: #endif Module* _mod; diff --git a/src/RadioLib.h b/src/RadioLib.h index c6afae7a..edeb8fd6 100644 --- a/src/RadioLib.h +++ b/src/RadioLib.h @@ -1,4 +1,4 @@ -#ifndef _RADIOLIB_H +#if !defined(_RADIOLIB_H) #define _RADIOLIB_H /*! diff --git a/src/TypeDef.h b/src/TypeDef.h index a2726ded..236c7ab4 100644 --- a/src/TypeDef.h +++ b/src/TypeDef.h @@ -1,4 +1,4 @@ -#ifndef _RADIOLIB_TYPES_H +#if !defined(_RADIOLIB_TYPES_H) #define _RADIOLIB_TYPES_H #include "BuildOpt.h"