* BCC_MAKEFILE (cflags): Remove -D __STDC__.
* digimars.mak (DEFINES): Likewise.
* Mac_files/MacOS_config.h (__STDC__, NO_SIGNALS): Remove macro.
* doc/README.Mac (__STDC__, NO_SIGNALS): Likewise.
* windows-untested/stdafx.h (__STDC__): Likewise.
* README: Remove obsolete information about NO_SIGNALS.
lib= $(bcbin)\tlib\r
link= $(bcbin)\ilink32\r
cflags= -O2 -R -v- -vi -H -H=gc.csm -I$(bcinclude);$(gcinclude1);$(gcinclude2) -L$(bclib) \\r
- -w-pro -w-aus -w-par -w-ccc -w-rch -a4 -D__STDC__=0\r
+ -w-pro -w-aus -w-par -w-ccc -w-rch -a4\r
defines= -DALL_INTERIOR_POINTERS -DUSE_GENERIC -DNO_GETENV -DJAVA_FINALIZATION -DGC_OPERATOR_NEW_ARRAY\r
\r
.c.obj:\r
// for CodeWarrior Pro with Metrowerks Standard Library (MSL).
// #define MSL_USE_PRECOMPILED_HEADERS 0
#include <ansi_prefix.mac.h>
-#ifndef __STDC__
-#define __STDC__ 0
-#endif
-
#endif /* __MWERKS__ */
// these are defined again in gc_priv.h.
#define ALL_INTERIOR_POINTERS // follows interior pointers.
//#define DONT_ADD_BYTE_AT_END // no padding.
//#define SMALL_CONFIG // whether to use a smaller heap.
-#define NO_SIGNALS // signals aren't real on the Macintosh.
#define USE_TEMPORARY_MEMORY // use Macintosh temporary memory.
and during uninterruptible parts of the allocation process.
Like standard ANSI C mallocs, by default it is unsafe to invoke
malloc (and other GC routines) from a signal handler while another
-malloc call may be in progress. Removing -DNO_SIGNALS from Makefile
-attempts to remedy that. But that may not be reliable with a compiler that
-substantially reorders memory operations inside GC_malloc.
+malloc call may be in progress.
The allocator/collector can also be configured for thread-safe operation.
(Full signal safety can also be achieved, but only at the cost of two system
# Written by Walter Bright\r
\r
\r
-DEFINES=-DNDEBUG -DGC_BUILD -D_WINDOWS -DGC_DLL -DALL_INTERIOR_POINTERS -D__STDC__ -DWIN32_THREADS\r
+DEFINES=-DNDEBUG -DGC_BUILD -D_WINDOWS -DGC_DLL -DALL_INTERIOR_POINTERS -DWIN32_THREADS\r
CFLAGS=-Iinclude $(DEFINES) -wx -g\r
LFLAGS=/ma/implib/co\r
CC=sc\r
#if macintosh
#define MSL_USE_PRECOMPILED_HEADERS 0
#include <ansi_prefix.mac.h>
- #ifndef __STDC__
- #define __STDC__ 0
- #endif
// See list of #defines to configure the library in: 'MakeFile'
// see also README
#define ALL_INTERIOR_POINTERS // follows interior pointers.
//#define DONT_ADD_BYTE_AT_END // disables the padding if defined.
//#define SMALL_CONFIG // whether to use a smaller heap.
- #define NO_SIGNALS // signals aren't real on the Macintosh.
#define ATOMIC_UNCOLLECTABLE // GC_malloc_atomic_uncollectable()
// define either or none as per personal preference
# define GC_DEBUG
#endif
-#define __STDC__ 1
-
#define SAVE_CALL_CHAIN
#define SAVE_CALL_COUNT 8