Skip to content

Commit 2a82738

Browse files
committed
Fix issue with min/max macros for ESP8266
1 parent 6ba4acf commit 2a82738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MySensors.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@
9393
#define _BV(x) (1<<(x)) //!< _BV
9494
#endif
9595

96-
#if !defined(min) && !defined(__linux__)
96+
#if !defined(min) && !defined(__linux__) && !defined(ESP8266)
9797
#define min(a,b) ((a)<(b)?(a):(b)) //!< min
9898
#endif
9999

100-
#if !defined(max) && !defined(__linux__)
100+
#if !defined(max) && !defined(__linux__) && !defined(ESP8266)
101101
#define max(a,b) ((a)>(b)?(a):(b)) //!< max
102102
#endif
103103

0 commit comments

Comments
 (0)