]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
only define _REENTRANT if not already defined, and only in setup.h
authorDaniel Stenberg <daniel@haxx.se>
Tue, 19 Apr 2005 23:19:23 +0000 (23:19 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 Apr 2005 23:19:23 +0000 (23:19 +0000)
lib/hostares.c
lib/hostasyn.c
lib/hostip.c
lib/hostip4.c
lib/hostip6.c
lib/hostsyn.c
lib/hostthre.c
lib/setup.h

index 13c0dc2370fdac925bcfb621a9d3abdcd646aa54..af02d8dc894a6a33590074a41140ae99fa835310 100644 (file)
@@ -26,8 +26,6 @@
 #include <string.h>
 #include <errno.h>
 
-#define _REENTRANT
-
 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 #include <malloc.h>
 #else
index e37db275590fd24e691ed6c8684495c78b9f60ad..d1b7cdd186fe07ef8f975cb7beb6e81c5814dd4f 100644 (file)
@@ -26,8 +26,6 @@
 #include <string.h>
 #include <errno.h>
 
-#define _REENTRANT
-
 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 #include <malloc.h>
 #else
index 233d81cf368a36d6f55443eb3c01d3dcb67e576c..91f59af2ab180ae1e6e9c078bbe2f89dc6ecbc89 100644 (file)
@@ -26,8 +26,6 @@
 #include <string.h>
 #include <errno.h>
 
-#define _REENTRANT
-
 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 #include <malloc.h>
 #else
index 178f3b9daa90b27121dd3c5a68bd8ea6221dabcb..cebc74d5896ee7ee76853c48b06ee726299f1340 100644 (file)
@@ -26,8 +26,6 @@
 #include <string.h>
 #include <errno.h>
 
-#define _REENTRANT
-
 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 #include <malloc.h>
 #else
index 0c5eaa03c98786b1d2070ce489d6301d2fcaee50..b273efe006dfc81718fdaf7032c6614b7adde099 100644 (file)
@@ -26,8 +26,6 @@
 #include <string.h>
 #include <errno.h>
 
-#define _REENTRANT
-
 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 #include <malloc.h>
 #else
index 38030b7f0abd1084abe4b95c3621542f279799e1..a385632e922224cb5df8c92d5bc57e359f91cf24 100644 (file)
@@ -26,8 +26,6 @@
 #include <string.h>
 #include <errno.h>
 
-#define _REENTRANT
-
 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 #include <malloc.h>
 #else
index b05729404a5f84c8ac547e49f3400aae60520d87..dd3f896c9e1524fb694c8661e3f035e6045994bc 100644 (file)
@@ -26,8 +26,6 @@
 #include <string.h>
 #include <errno.h>
 
-#define _REENTRANT
-
 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 #include <malloc.h>
 #else
index a248e0669afaccdc48b18079a85225067665281b..b44e777c960261750d577f8530cc5891a18d0b98 100644 (file)
@@ -95,13 +95,13 @@ typedef unsigned char bool;
 #define FORMAT_OFF_T "ld"
 #endif
 
-/*#ifdef NEED_REENTRANT*/
+#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 */
+#endif
 
 #include <stdio.h>
 #ifdef HAVE_ASSERT_H