Skip to content

Commit

Permalink
[wpiutil] Set WPI_{UN}IGNORE_DEPRECATED to empty when all else fails (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald authored Oct 5, 2023
1 parent 58141d6 commit 1d19e09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wpiutil/src/main/native/include/wpi/deprecated.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
#elif defined(_WIN32)
#define WPI_IGNORE_DEPRECATED _Pragma("warning(disable : 4996)")
#else
#define WPI_IGNORE_DEPRECATED
#endif

#endif
Expand All @@ -25,6 +27,8 @@
#define WPI_UNIGNORE_DEPRECATED _Pragma("GCC diagnostic pop")
#elif defined(_WIN32)
#define WPI_UNIGNORE_DEPRECATED _Pragma("warning(default : 4996)")
#else
#define WPI_UNIGNORE_DEPRECATED
#endif
#endif

Expand Down

0 comments on commit 1d19e09

Please sign in to comment.