1
0
Fork 0

Fix conflicts of min and max from stl_algo.h (included from atomic)

This commit is contained in:
Ritvik 2024-02-21 20:43:04 -05:00 committed by JF
parent 3b4b5a5163
commit 4d86a3c6c1

View file

@ -2,9 +2,9 @@
#define min // workaround: nimble's min/max macros conflict with libstdc++ #define min // workaround: nimble's min/max macros conflict with libstdc++
#define max #define max
#include <host/ble_gap.h> #include <host/ble_gap.h>
#include <atomic>
#undef max #undef max
#undef min #undef min
#include <atomic>
namespace Pinetime { namespace Pinetime {
namespace Controllers { namespace Controllers {