From 3312c2634a97cc1d599700cc5988a92307c94681 Mon Sep 17 00:00:00 2001 From: rfm Date: Fri, 14 Oct 2011 16:43:03 +0000 Subject: [PATCH] threading portability improvement git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33995 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 9 +++++++++ Source/Additions/Makefile.preamble | 2 +- Source/Makefile.preamble | 2 +- Source/ObjectiveC2/Makefile.preamble | 2 +- Source/unix/Makefile.preamble | 2 +- Source/win32/Makefile.preamble | 2 +- 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c003f25f..fe18138e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-10-14 Richard Frith-Macdonald + + * Source/unix/Makefile.preamble: + * Source/win32/Makefile.preamble: + * Source/ObjectiveC2/Makefile.preamble: + * Source/Additions/Makefile.preamble: + * Source/Makefile.preamble: + Define _REENTRANT as well as _XOPEN_SOURCE for maximum portability. + 2011-10-14 Richard Frith-Macdonald * Source/NSBundle.m: diff --git a/Source/Additions/Makefile.preamble b/Source/Additions/Makefile.preamble index 501095a92..00cf71dc0 100644 --- a/Source/Additions/Makefile.preamble +++ b/Source/Additions/Makefile.preamble @@ -40,7 +40,7 @@ # Additional flags to pass to the preprocessor ADDITIONAL_CPPFLAGS = $(DEFS) \ --D_XOPEN_SOURCE=600 \ +-D_XOPEN_SOURCE=600 -D_REENTRANT\ $(WARN_FLAGS) -DNO_GNUSTEP=1 # Additional flags to pass to the Objective-C compiler diff --git a/Source/Makefile.preamble b/Source/Makefile.preamble index f71b6d245..f31cdf8e0 100644 --- a/Source/Makefile.preamble +++ b/Source/Makefile.preamble @@ -40,7 +40,7 @@ # Additional flags to pass to the preprocessor ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) \ --D_XOPEN_SOURCE=600 \ +-D_XOPEN_SOURCE=600 -D_REENTRANT\ $(WARN_FLAGS) \ -Wcast-align \ #-Wstrict-prototypes \ diff --git a/Source/ObjectiveC2/Makefile.preamble b/Source/ObjectiveC2/Makefile.preamble index d5ee96921..45f8d978c 100644 --- a/Source/ObjectiveC2/Makefile.preamble +++ b/Source/ObjectiveC2/Makefile.preamble @@ -40,7 +40,7 @@ # Additional flags to pass to the preprocessor ADDITIONAL_CPPFLAGS = $(DEFS) \ --D_XOPEN_SOURCE=600 \ +-D_XOPEN_SOURCE=600 -D_REENTRANT\ $(WARN_FLAGS) # Additional flags to pass to the Objective-C compiler diff --git a/Source/unix/Makefile.preamble b/Source/unix/Makefile.preamble index 63952778d..12dd80990 100644 --- a/Source/unix/Makefile.preamble +++ b/Source/unix/Makefile.preamble @@ -40,7 +40,7 @@ # Additional flags to pass to the preprocessor ADDITIONAL_CPPFLAGS = $(DEFS) \ --D_XOPEN_SOURCE=600 \ +-D_XOPEN_SOURCE=600 -D_REENTRANT\ $(WARN_FLAGS) # Additional flags to pass to the Objective-C compiler diff --git a/Source/win32/Makefile.preamble b/Source/win32/Makefile.preamble index 63952778d..12dd80990 100644 --- a/Source/win32/Makefile.preamble +++ b/Source/win32/Makefile.preamble @@ -40,7 +40,7 @@ # Additional flags to pass to the preprocessor ADDITIONAL_CPPFLAGS = $(DEFS) \ --D_XOPEN_SOURCE=600 \ +-D_XOPEN_SOURCE=600 -D_REENTRANT\ $(WARN_FLAGS) # Additional flags to pass to the Objective-C compiler