Skip to content

Commit

Permalink
[Build] Remove unneeded duplicate typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
tonhuisman committed Oct 7, 2023
1 parent c00fc86 commit 9301ff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/IRrecv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 2 additions & 4 deletions src/IRremoteESP8266.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,13 @@
#if __cplusplus >= 202002L
#include <atomic>
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<uint32_t> 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)
Expand Down

0 comments on commit 9301ff0

Please sign in to comment.