comparison src/emacs.c @ 1792:6fcd90c626a7

[xemacs-hg @ 2003-11-14 22:59:23 by james] ICC also understands typeof.
author james
date Fri, 14 Nov 2003 22:59:28 +0000
parents 7580e52a8218
children 19c89a2e24b6
comparison
equal deleted inserted replaced
1791:a00997930c42 1792:6fcd90c626a7
3336 voodoo_free_hook (void *mem) 3336 voodoo_free_hook (void *mem)
3337 { 3337 {
3338 /* Disable all calls to free() when XEmacs is exiting and it doesn't */ 3338 /* Disable all calls to free() when XEmacs is exiting and it doesn't */
3339 /* matter. */ 3339 /* matter. */
3340 __free_hook = 3340 __free_hook =
3341 #ifdef __GNUC__ /* prototype of __free_hook varies with glibc version */ 3341 #if defined (__GNUC__) || defined (__ICC)
3342 /* prototype of __free_hook varies with glibc version */
3342 (__typeof__ (__free_hook)) 3343 (__typeof__ (__free_hook))
3343 #endif 3344 #endif
3344 voodoo_free_hook; 3345 voodoo_free_hook;
3345 } 3346 }
3346 #endif /* GNU_MALLOC */ 3347 #endif /* GNU_MALLOC */
3401 3402
3402 shut_down_emacs (0, STRINGP (arg) ? arg : Qnil, 0); 3403 shut_down_emacs (0, STRINGP (arg) ? arg : Qnil, 0);
3403 3404
3404 #if defined (GNU_MALLOC) 3405 #if defined (GNU_MALLOC)
3405 __free_hook = 3406 __free_hook =
3406 #ifdef __GNUC__ /* prototype of __free_hook varies with glibc version */ 3407 #if defined (__GNUC__) || defined (__ICC)
3408 /* prototype of __free_hook varies with glibc version */
3407 (__typeof__ (__free_hook)) 3409 (__typeof__ (__free_hook))
3408 #endif 3410 #endif
3409 voodoo_free_hook; 3411 voodoo_free_hook;
3410 #endif 3412 #endif
3411 3413