Refactor how preprocessor symbol _THREAD_SAFE definition is done.

This commit is contained in:
Yang Tse 2009-11-14 18:51:37 +00:00
parent a8ddd6ce31
commit 1cbc93fb54
10 changed files with 243 additions and 65 deletions

View file

@ -68,6 +68,17 @@
#endif /* HAVE_CONFIG_H */
/*
* AIX 4.3 and newer needs _THREAD_SAFE defined to build
* proper reentrant code. Others may also need it.
*/
#ifdef NEED_THREAD_SAFE
# ifndef _THREAD_SAFE
# define _THREAD_SAFE
# endif
#endif
/*
* Tru64 needs _REENTRANT set for a few function prototypes and
* things to appear in the system header files. Unixware needs it