Add GCC Pragma Disable Override

Add a separate #define that allows the end user to completely disable
GCC pragmas in the build.  Useful when building with older platforms.
This commit is contained in:
Stephen Akiki 2021-10-01 10:01:00 -04:00
parent ae9bbe1169
commit 0c5163cb8a

View File

@ -24,7 +24,7 @@
# define FMT_CLANG_VERSION 0
#endif
#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(FMT_GCC_PRAGMA_DISABLE)
# define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
# define FMT_GCC_PRAGMA(arg) _Pragma(arg)
#else