diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/w32heap.c | 24 |
2 files changed, 5 insertions, 24 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0c2ba981111..71bfec1f061 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-03-25 Fabrice Popineau <fabrice.popineau@supelec.fr> | ||
| 2 | |||
| 3 | * w32heap.c (_heap_init, _heap_term): Remove dead MSVC-specific | ||
| 4 | code. | ||
| 5 | |||
| 1 | 2012-03-25 Kenichi Handa <handa@m17n.org> | 6 | 2012-03-25 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * dispextern.h (struct glyph): Change the bit length of | 8 | * dispextern.h (struct glyph): Change the bit length of |
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 | |||
| 307 | int __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 | |||
| 315 | void __cdecl | ||
| 316 | _heap_term (void) | ||
| 317 | { | ||
| 318 | return; | ||
| 319 | } | ||
| 320 | |||
| 321 | #endif | ||
| 322 | |||