Skip to content

Commit

Permalink
Fix GCC macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Nov 1, 2024
1 parent df79a92 commit ea5f662
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/i18n_review.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
///@brief Checks which version of GCC we are building with
#if defined(__GNUC__) && defined(__GNUC_MINOR__) && defined(__GNUC_PATCHLEVEL__)
#define CHECK_GCC_VERSION(major, minor, patch) \
((__GNUC__ > (major)) || (__GNUC__ == (major) && __GNUC_MINOR__ > (minor))) \
|| (__GNUC__ == (major) && __GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ >= (patch)))
((__GNUC__ > (major)) || \
(__GNUC__ == (major) && __GNUC_MINOR__ > (minor)) || \
(__GNUC__ == (major) && __GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ >= (patch)))
#else
// if not compiling with GCC, then treat anything as true
#define CHECK_GCC_VERSION(major, minor, patch) 1
Expand Down

0 comments on commit ea5f662

Please sign in to comment.