diff options
author | Yang Tse <yangsita@gmail.com> | 2008-07-14 17:31:39 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-07-14 17:31:39 +0000 |
commit | 0f50cd7623e3ffbf8c11951f14aa4bbc1b917c8c (patch) | |
tree | db3a8494c7ed9dcf2c01e83312d03d816f748937 /lib | |
parent | 669c555874c7229cd95a494e36d826770460e8d7 (diff) |
Move _REENTRANT definition earlier in lib/setup.h
Diffstat (limited to 'lib')
-rw-r--r-- | lib/setup.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/setup.h b/lib/setup.h index e174e18e4..d68782366 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -74,6 +74,16 @@ #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. */ @@ -157,14 +167,6 @@ #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 |