We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b3c36b commit a3bf316Copy full SHA for a3bf316
cores/esp8266/Arduino.h
@@ -237,7 +237,7 @@ void optimistic_yield(uint32_t interval_us);
237
#endif
238
239
#ifdef __cplusplus
240
-
+#include <algorithm>
241
#include "pgmspace.h"
242
243
#include "WCharacter.h"
@@ -248,11 +248,8 @@ void optimistic_yield(uint32_t interval_us);
248
#include "Updater.h"
249
#include "debug.h"
250
251
-#ifndef _GLIBCXX_VECTOR
252
-// arduino is not compatible with std::vector
253
-#define min(a,b) ((a)<(b)?(a):(b))
254
-#define max(a,b) ((a)>(b)?(a):(b))
255
-#endif
+using std::min;
+using std::max;
256
257
#define _min(a,b) ((a)<(b)?(a):(b))
258
#define _max(a,b) ((a)>(b)?(a):(b))
0 commit comments