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
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
#include <algorithm>
|
||||||
#include "pgmspace.h"
|
#include "pgmspace.h"
|
||||||
|
|
||||||
#include "WCharacter.h"
|
#include "WCharacter.h"
|
||||||
@ -247,11 +247,8 @@ void optimistic_yield(uint32_t interval_us);
|
|||||||
#include "Updater.h"
|
#include "Updater.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
#ifndef _GLIBCXX_VECTOR
|
using std::min;
|
||||||
// arduino is not compatible with std::vector
|
using std::max;
|
||||||
#define min(a,b) ((a)<(b)?(a):(b))
|
|
||||||
#define max(a,b) ((a)>(b)?(a):(b))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define _min(a,b) ((a)<(b)?(a):(b))
|
#define _min(a,b) ((a)<(b)?(a):(b))
|
||||||
#define _max(a,b) ((a)>(b)?(a):(b))
|
#define _max(a,b) ((a)>(b)?(a):(b))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user