diff options
author | Fabrice Popineau <fabrice.popineau@supelec.fr> | 2012-03-25 20:30:50 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2012-03-25 20:30:50 +0200 |
commit | f514f6f0e3f8bbeb5212d0337e5bda5a9a4eaeb5 (patch) | |
tree | 9614773ed296cf75b4cea423f68d44f051ab2e32 /src/w32heap.c | |
parent | e5a69fd00a424f59f2ef7be8049b47340ddaa1ca (diff) |
Remove dead MSVC-specific code.
src/w32heap.c (_heap_init, _heap_term): Remove dead MSVC-specific code.
Diffstat (limited to 'src/w32heap.c')
-rw-r--r-- | src/w32heap.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/w32heap.c b/src/w32heap.c index 35ac4cbf31..da8579896f 100644 --- a/src/w32heap.c +++ b/src/w32heap.c @@ -296,27 +296,3 @@ round_heap (unsigned long align) if (need_to_alloc) sbrk (need_to_alloc); } - -#if (_MSC_VER >= 1000 && _MSC_VER < 1300 && !defined (USE_CRT_DLL)) - -/* MSVC 4.2 invokes these functions from mainCRTStartup to initialize - a heap via HeapCreate. They are normally defined by the runtime, - but we override them here so that the unnecessary HeapCreate call - is not performed. */ - -int __cdecl -_heap_init (void) -{ - /* Stepping through the assembly indicates that mainCRTStartup is - expecting a nonzero success return value. */ - return 1; -} - -void __cdecl -_heap_term (void) -{ - return; -} - -#endif - |