mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-15 09:03:49 +02:00
gmacros: missing check if __STDC_VERSION__ is defined
This fixes warnings when compiling on old distros like centos 7
This commit is contained in:
parent
3e2f31c858
commit
03e614e6d5
@ -1051,7 +1051,7 @@
|
|||||||
#elif (defined (__cplusplus) && __cplusplus >= 201103 && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) || defined (_MSC_VER) && (_MSC_VER >= 1900)
|
#elif (defined (__cplusplus) && __cplusplus >= 201103 && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) || defined (_MSC_VER) && (_MSC_VER >= 1900)
|
||||||
# define G_NORETURN [[noreturn]]
|
# define G_NORETURN [[noreturn]]
|
||||||
/* Use ISO C11 syntax when the compiler supports it. */
|
/* 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
|
# define G_NORETURN _Noreturn
|
||||||
#else
|
#else
|
||||||
# define G_NORETURN /* empty */
|
# define G_NORETURN /* empty */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user