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:
parent
ae9bbe1169
commit
0c5163cb8a
@ -24,7 +24,7 @@
|
|||||||
# define FMT_CLANG_VERSION 0
|
# define FMT_CLANG_VERSION 0
|
||||||
#endif
|
#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_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
||||||
# define FMT_GCC_PRAGMA(arg) _Pragma(arg)
|
# define FMT_GCC_PRAGMA(arg) _Pragma(arg)
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user