From 3c48eff73029b522a2b1af7652bab5e7afdc8784 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Thu, 23 May 2013 19:35:47 +0100 Subject: On platform lii6gc, the mps needs a bunch of symbols which are not defined if the -ansi option is given to gcc. these can be enabled by defining features like _gnu_source, but all headers share a common set of features (via ) and so all sources in the same compilation unit must turn on the same set of features. make sure this happens by turning on the features in config.h (not mpstd.h). Remove from mpsi.h (not needed). Copied from Perforce Change: 182124 ServerID: perforce.ravenbrook.com --- mps/code/mpstd.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'mps/code/mpstd.h') diff --git a/mps/code/mpstd.h b/mps/code/mpstd.h index 8298e98be26..410d7690f3b 100644 --- a/mps/code/mpstd.h +++ b/mps/code/mpstd.h @@ -1,7 +1,7 @@ /* mpstd.h: RAVENBROOK MEMORY POOL SYSTEM TARGET DETECTION * * $Id$ - * Copyright (c) 2001 Ravenbrook Limited. See end of file for license. + * Copyright (c) 2001-2013 Ravenbrook Limited. See end of file for license. * Portions copyright (C) 2001 Global Graphics Software. * * Detect the target platform using predefined preprocessor symbols @@ -156,12 +156,6 @@ #define MPS_WORD_SHIFT 5 #define MPS_PF_ALIGN 4 -#ifndef _REENTRANT /* it's also defined by cc -pthread */ -#define _REENTRANT /* defines, e.g., pthread_mutexattr_settype */ -#endif -#define _XOPEN_SOURCE 500 /* to get POSIX signal handling */ -#define _GNU_SOURCE /* to get register numbers for prmci3li.c */ - /* GCC 4.6.3, gcc -E -dM */ @@ -180,12 +174,6 @@ #define MPS_WORD_SHIFT 6 #define MPS_PF_ALIGN 8 -#ifndef _REENTRANT /* it's also defined by cc -pthread */ -#define _REENTRANT /* defines, e.g., pthread_mutexattr_settype */ -#endif -#define _XOPEN_SOURCE 500 /* to get POSIX signal handling */ -#define _GNU_SOURCE /* to get register numbers for prmci3li.c */ - /* GCC 2.95.3, gcc -E -dM */ -- cgit v1.2.1