aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/mpstd.h
diff options
context:
space:
mode:
authorGareth Rees2013-05-23 19:35:47 +0100
committerGareth Rees2013-05-23 19:35:47 +0100
commit3c48eff73029b522a2b1af7652bab5e7afdc8784 (patch)
treea9216e0fff07817a818fdbbe91e91ad63f1bf6dc /mps/code/mpstd.h
parentef4d65299de9e034c5fad2210eacb74276ba81b1 (diff)
downloademacs-3c48eff73029b522a2b1af7652bab5e7afdc8784.tar.gz
emacs-3c48eff73029b522a2b1af7652bab5e7afdc8784.zip
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 <feature.h>) 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 <string.h> from mpsi.h (not needed). Copied from Perforce Change: 182124 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/mpstd.h')
-rw-r--r--mps/code/mpstd.h14
1 files changed, 1 insertions, 13 deletions
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 @@
1/* mpstd.h: RAVENBROOK MEMORY POOL SYSTEM TARGET DETECTION 1/* mpstd.h: RAVENBROOK MEMORY POOL SYSTEM TARGET DETECTION
2 * 2 *
3 * $Id$ 3 * $Id$
4 * Copyright (c) 2001 Ravenbrook Limited. See end of file for license. 4 * Copyright (c) 2001-2013 Ravenbrook Limited. See end of file for license.
5 * Portions copyright (C) 2001 Global Graphics Software. 5 * Portions copyright (C) 2001 Global Graphics Software.
6 * 6 *
7 * Detect the target platform using predefined preprocessor symbols 7 * Detect the target platform using predefined preprocessor symbols
@@ -156,12 +156,6 @@
156#define MPS_WORD_SHIFT 5 156#define MPS_WORD_SHIFT 5
157#define MPS_PF_ALIGN 4 157#define MPS_PF_ALIGN 4
158 158
159#ifndef _REENTRANT /* it's also defined by cc -pthread */
160#define _REENTRANT /* defines, e.g., pthread_mutexattr_settype */
161#endif
162#define _XOPEN_SOURCE 500 /* to get POSIX signal handling */
163#define _GNU_SOURCE /* to get register numbers for prmci3li.c */
164
165 159
166/* GCC 4.6.3, gcc -E -dM */ 160/* GCC 4.6.3, gcc -E -dM */
167 161
@@ -180,12 +174,6 @@
180#define MPS_WORD_SHIFT 6 174#define MPS_WORD_SHIFT 6
181#define MPS_PF_ALIGN 8 175#define MPS_PF_ALIGN 8
182 176
183#ifndef _REENTRANT /* it's also defined by cc -pthread */
184#define _REENTRANT /* defines, e.g., pthread_mutexattr_settype */
185#endif
186#define _XOPEN_SOURCE 500 /* to get POSIX signal handling */
187#define _GNU_SOURCE /* to get register numbers for prmci3li.c */
188
189 177
190/* GCC 2.95.3, gcc -E -dM */ 178/* GCC 2.95.3, gcc -E -dM */
191 179