wafsamba/replace: move __STDC_WANT_LIB_EXT1__ to CFLAGS
[gd/samba-autobuild/.git] / lib / replace / replace.h
index 76898f013f8e9af338f9edc00fb4ad55bc006d02..212ed265d4ab5e14ddb27c2cfda354c358cee239 100644 (file)
 #include <standards.h>
 #endif
 
-/* Needs to be defined before std*.h and string*.h are included */
-#define __STDC_WANT_LIB_EXT1__ 1
+/*
+ * Needs to be defined before std*.h and string*.h are included
+ * As it's also needed when Python.h is the first header we
+ * require a global -D__STDC_WANT_LIB_EXT1__=1
+ */
+#ifndef __STDC_WANT_LIB_EXT1__
+#error -D__STDC_WANT_LIB_EXT1__=1 required
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>