aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes2000-08-22 23:31:00 +0000
committerAndrew Innes2000-08-22 23:31:00 +0000
commit2e4f64777739a60d7362bb71795135374a954dbb (patch)
treee6017dac78856697f1d96fcbc4beaa315ff8c174 /src
parent71eab8d17dbdc42e806c1a27d7a25613a0778008 (diff)
downloademacs-2e4f64777739a60d7362bb71795135374a954dbb.tar.gz
emacs-2e4f64777739a60d7362bb71795135374a954dbb.zip
[!USE_CRT_DLL]: Don't define _heap_init and _heap_term
unless we are linking with a static CRT. (RVA_TO_PTR): Cast result to unsigned char*.
Diffstat (limited to 'src')
-rw-r--r--src/w32heap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32heap.c b/src/w32heap.c
index 69144b25038..e564a4efedc 100644
--- a/src/w32heap.c
+++ b/src/w32heap.c
@@ -30,7 +30,7 @@ Boston, MA 02111-1307, USA.
30#include "lisp.h" /* for VALMASK */ 30#include "lisp.h" /* for VALMASK */
31 31
32#undef RVA_TO_PTR 32#undef RVA_TO_PTR
33#define RVA_TO_PTR(rva) ((DWORD)(rva) + (DWORD)GetModuleHandle (NULL)) 33#define RVA_TO_PTR(rva) ((unsigned char *)((DWORD)(rva) + (DWORD)GetModuleHandle (NULL)))
34 34
35/* This gives us the page size and the size of the allocation unit on NT. */ 35/* This gives us the page size and the size of the allocation unit on NT. */
36SYSTEM_INFO sysinfo_cache; 36SYSTEM_INFO sysinfo_cache;
@@ -275,7 +275,7 @@ round_heap (unsigned long align)
275 sbrk (need_to_alloc); 275 sbrk (need_to_alloc);
276} 276}
277 277
278#if (_MSC_VER >= 1000) 278#if (_MSC_VER >= 1000 && !defined(USE_CRT_DLL))
279 279
280/* MSVC 4.2 invokes these functions from mainCRTStartup to initialize 280/* MSVC 4.2 invokes these functions from mainCRTStartup to initialize
281 a heap via HeapCreate. They are normally defined by the runtime, 281 a heap via HeapCreate. They are normally defined by the runtime,