Mercurial > hg > xemacs-beta
diff src/emacs.c @ 1799:19c89a2e24b6
[xemacs-hg @ 2003-11-20 16:04:45 by james]
Autodetect the typeof extension.
author | james |
---|---|
date | Thu, 20 Nov 2003 16:04:47 +0000 |
parents | 6fcd90c626a7 |
children | 9c872f33ecbe |
line wrap: on
line diff
--- a/src/emacs.c Wed Nov 19 22:50:39 2003 +0000 +++ b/src/emacs.c Thu Nov 20 16:04:47 2003 +0000 @@ -3338,9 +3338,9 @@ /* Disable all calls to free() when XEmacs is exiting and it doesn't */ /* matter. */ __free_hook = -#if defined (__GNUC__) || defined (__ICC) +#ifdef TYPEOF /* prototype of __free_hook varies with glibc version */ - (__typeof__ (__free_hook)) + (TYPEOF (__free_hook)) #endif voodoo_free_hook; } @@ -3404,9 +3404,9 @@ #if defined (GNU_MALLOC) __free_hook = -#if defined (__GNUC__) || defined (__ICC) +#ifdef TYPEOF /* prototype of __free_hook varies with glibc version */ - (__typeof__ (__free_hook)) + (TYPEOF (__free_hook)) #endif voodoo_free_hook; #endif