author | Mike Thomas <mike.thomas@paradigmgeo.com> | 2005年01月14日 05:45:03 +0000 |
---|---|---|
committer | Mike Thomas <mike.thomas@paradigmgeo.com> | 2005年01月14日 05:45:03 +0000 |
commit | 83d8b35e8eeb23f385c67e307e19e5a50898edf2 (patch) | |
tree | 14e756ebd8cbd88047a065d9fc79bcf2479762b1 | |
parent | 946e069238f2e7f997bfcd58ae660e47366df7ff (diff) | |
download | gcl-unlabeled-1.19.4.1.2.17.2.1.4.1.2.2.2.tar.gz |
-rw-r--r-- | gcl/o/alloc.c | 10 |
diff --git a/gcl/o/alloc.c b/gcl/o/alloc.c index 6cbb89015..af51c2007 100644 --- a/gcl/o/alloc.c +++ b/gcl/o/alloc.c @@ -1485,6 +1485,16 @@ malloc(size_t size) { RECREATE_HEAP #endif ; +#ifdef __MINGW32__ + /* If malloc() gets called by the C runtime before + * main starts and the shared memory is not yet + * initialised causing boofo. + * SET_REAL_MAXPAGE calls init_shared_memory(). + * This problem arose with gcc 3.4.2 and new libs. + */ + SET_REAL_MAXPAGE + ; +#endif } } |