diff options
author | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2021-04-27 12:21:07 +0200 |
---|---|---|
committer | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2021-04-27 13:11:42 +0200 |
commit | 03e614e6d5540079b6758eded0e9f8d79c116070 (patch) | |
tree | 393bcbefc3e4aad42fa3dd259178f7e1c23d70c5 /glib/gmacros.h | |
parent | 3e2f31c8584565eac09b50e4269801cfb720f52c (diff) | |
download | glib-03e614e6d5540079b6758eded0e9f8d79c116070.tar.gz |
gmacros: missing check if __STDC_VERSION__ is defined
This fixes warnings when compiling on old distros like centos 7
Diffstat (limited to 'glib/gmacros.h')
-rw-r--r-- | glib/gmacros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gmacros.h b/glib/gmacros.h index 5b3b265c2..286f1307d 100644 --- a/glib/gmacros.h +++ b/glib/gmacros.h @@ -1051,7 +1051,7 @@ #elif (defined (__cplusplus) && __cplusplus >= 201103 && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) || defined (_MSC_VER) && (_MSC_VER >= 1900) # define G_NORETURN [[noreturn]] /* Use ISO C11 syntax when the compiler supports it. */ -#elif __STDC_VERSION__ >= 201112 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) +#elif (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) # define G_NORETURN _Noreturn #else # define G_NORETURN /* empty */ |