diff --git a/src/IRrecv.h b/src/IRrecv.h index e681b91f0..c777758cc 100644 --- a/src/IRrecv.h +++ b/src/IRrecv.h @@ -86,11 +86,7 @@ typedef struct { uint8_t timeout; // Nr. of milliSeconds before we give up. } irparams_t; -#if __cplusplus >= 202002L typedef volatile irparams_t atomic_irparams_t; -#else -typedef volatile irparams_t atomic_irparams_t; -#endif /// Results from a data match typedef struct { diff --git a/src/IRremoteESP8266.h b/src/IRremoteESP8266.h index 6d5497b05..b1140f259 100644 --- a/src/IRremoteESP8266.h +++ b/src/IRremoteESP8266.h @@ -54,15 +54,13 @@ #if __cplusplus >= 202002L #include typedef std::atomic< bool > atomic_bool; -typedef volatile uint16_t atomic_uint16_t; -typedef volatile const uint16_t atomic_const_uint16_t; typedef std::atomic atomic_uint32_t; #else typedef volatile bool atomic_bool; -typedef volatile uint16_t atomic_uint16_t; -typedef volatile const uint16_t atomic_const_uint16_t; typedef volatile uint32_t atomic_uint32_t; #endif +typedef volatile uint16_t atomic_uint16_t; +typedef volatile const uint16_t atomic_const_uint16_t; // Library Version Information // Major version number (X.x.x)