mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
Use min and max from std::
This commit is contained in:
parent
063c2379a4
commit
dfcaa1b854
@ -236,7 +236,7 @@ void optimistic_yield(uint32_t interval_us);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <algorithm>
|
||||
#include "pgmspace.h"
|
||||
|
||||
#include "WCharacter.h"
|
||||
@ -247,11 +247,8 @@ void optimistic_yield(uint32_t interval_us);
|
||||
#include "Updater.h"
|
||||
#include "debug.h"
|
||||
|
||||
#ifndef _GLIBCXX_VECTOR
|
||||
// arduino is not compatible with std::vector
|
||||
#define min(a,b) ((a)<(b)?(a):(b))
|
||||
#define max(a,b) ((a)>(b)?(a):(b))
|
||||
#endif
|
||||
using std::min;
|
||||
using std::max;
|
||||
|
||||
#define _min(a,b) ((a)<(b)?(a):(b))
|
||||
#define _max(a,b) ((a)>(b)?(a):(b))
|
||||
|
Loading…
x
Reference in New Issue
Block a user