diff options
-rw-r--r-- | src/raptor_internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/raptor_internal.h b/src/raptor_internal.h index f566efae..1b8c0009 100644 --- a/src/raptor_internal.h +++ b/src/raptor_internal.h @@ -172,8 +172,10 @@ void raptor_sign_free(void *ptr); * cannot use #pragma in a macro * * #if defined __STDC_VERSION__ && (__STDC_VERSION__ >= 199901L) + * + * Valid for clang or GCC >= 4.9.0 */ -#if defined(__clang__) || (defined __GNUC__ && 460 <= __GNUC__ * 100 + __GNUC_MINOR__) +#if defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((4) << 16) + (9))) #define IGNORE_FORMAT_NONLITERAL_START \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wformat-nonliteral\"") |