]> granicus.if.org Git - curl/commitdiff
Move _REENTRANT definition earlier in lib/setup.h
authorYang Tse <yangsita@gmail.com>
Mon, 14 Jul 2008 17:31:39 +0000 (17:31 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 14 Jul 2008 17:31:39 +0000 (17:31 +0000)
CHANGES
lib/setup.h

diff --git a/CHANGES b/CHANGES
index b5bd740efa19447da88adb5ff5f27988a8818e53..61c7ac177fe4bbad52440c00eb1e3866c68f189d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -13,6 +13,8 @@ Yang Tse (14 Jul 2008)
 
 - Removed inclusion of remaining system header files from configuration files.
 
+- Move _REENTRANT definition earlier in lib/setup.h
+
 Yang Tse (11 Jul 2008)
 - Added missing multiple header inclusion prevention definition for header
   file content_encoding.h
index e174e18e4069fa2e41f0b67f76554e93c017e3c1..d68782366576b6a50156db633a55a3ac2723deb3 100644 (file)
 
 #endif /* HAVE_CONFIG_H */
 
+/*
+ * Solaris needs _REENTRANT set for a few function prototypes and
+ * things to appear in the system header files. Unixware needs it
+ * to build proper reentrant code. Others may also need it.
+ */
+
+#ifndef _REENTRANT
+#  define _REENTRANT
+#endif
+
 /*
  * Disable other protocols when http is the only one desired.
  */
 #define FORMAT_OFF_TU "lu" /* thus unsigned version */
 #endif /* SIZEOF_CURL_OFF_T */
 
-#ifndef _REENTRANT
-/* Solaris needs _REENTRANT set for a few function prototypes and things to
-   appear in the #include files. We need to #define it before all #include
-   files. Unixware needs it to build proper reentrant code. Others may also
-   need it. */
-#define _REENTRANT
-#endif
-
 #ifdef HAVE_EXTRA_STRICMP_H
 #  include <extra/stricmp.h>
 #endif