aboutsummaryrefslogtreecommitdiff
path: root/gold/config.in
diff options
context:
space:
mode:
Diffstat (limited to 'gold/config.in')
-rw-r--r--gold/config.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/config.in b/gold/config.in
index dd6d827..dd0a0da 100644
--- a/gold/config.in
+++ b/gold/config.in
@@ -1,5 +1,12 @@
/* config.in. Generated from configure.ac by autoheader. */
+/* Check that config.h is #included before system headers
+ (this works only for glibc, but that should be enough). */
+#if defined(__GLIBC__) && !defined(__CONFIG_H__)
+# error config.h must be #included before system headers
+#endif
+#define __CONFIG_H__ 1
+
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD