aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32heap.c')
-rw-r--r--src/w32heap.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/w32heap.c b/src/w32heap.c
index 35ac4cbf31f..da8579896f2 100644
--- a/src/w32heap.c
+++ b/src/w32heap.c
@@ -296,27 +296,3 @@ round_heap (unsigned long align)
296 if (need_to_alloc) 296 if (need_to_alloc)
297 sbrk (need_to_alloc); 297 sbrk (need_to_alloc);
298} 298}
299
300#if (_MSC_VER >= 1000 && _MSC_VER < 1300 && !defined (USE_CRT_DLL))
301
302/* MSVC 4.2 invokes these functions from mainCRTStartup to initialize
303 a heap via HeapCreate. They are normally defined by the runtime,
304 but we override them here so that the unnecessary HeapCreate call
305 is not performed. */
306
307int __cdecl
308_heap_init (void)
309{
310 /* Stepping through the assembly indicates that mainCRTStartup is
311 expecting a nonzero success return value. */
312 return 1;
313}
314
315void __cdecl
316_heap_term (void)
317{
318 return;
319}
320
321#endif
322