summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-07-12 10:23:23 +0200
committerThomas Haller <thaller@redhat.com>2018-07-15 16:17:05 +0200
commit7e30b7c4f45d56d7d6ffe218a04e0c5152efcb21 (patch)
treeb5ceb6440dae1f3629240f68a94c64b0d54b95b6
parent3a4cb1b9e2b161874cd15fbe3f65c486765f3899 (diff)
downloadNetworkManager-th/build-flags.tar.gz
not-to-be-commitedth/build-flags
Only for testing, whether -std=gnu99 is set as expected.
-rw-r--r--shared/nm-default.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/nm-default.h b/shared/nm-default.h
index 8bcc5c7043..b9df48b1d1 100644
--- a/shared/nm-default.h
+++ b/shared/nm-default.h
@@ -22,6 +22,12 @@
#ifndef __NM_DEFAULT_H__
#define __NM_DEFAULT_H__
+#ifndef __STDC_VERSION__
+#error MISSING STD_VERSION
+#elif __STDC_VERSION__ != 199901
+#error WRONG STD_VERSION
+#endif
+
#define NM_NETWORKMANAGER_COMPILATION_WITH_GLIB (1 << 0)
#define NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_LIB (1 << 1)
#define NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG (1 << 2)