> "Fabrice" == Fabrice Popineau
<popineau(a)ese-metz.fr> writes:
Fabrice> Hi, This is the patch I come with after updating to the
Fabrice> latest 21.2b13. It allows fastcall compilation (-Gr) and
Fabrice> compiling with -O2x. The resulting xemacs.exe has not yet
Fabrice> crashed, even using gnus quite intensively.
Fabrice> I'm not sure at all the few __cdecl I have added are
Fabrice> right. They should probably be added using some macro, but I
Fabrice> have not found which one. Any clue ?
There doesn't seem to be a pre-defined MSVC macro for conditionally
setting __cdecl. <types.h> contains the following:
#ifndef CDECL
#define CDECL _cdecl
#endif
It might be better to do something like:
#if MSVC_FASTCALL
#define X_CDECL __cdecl
#else
#define X_CDECL
#endif
/* ... */
static SIGTYPE X_CDECL
alarm_signal (int signo)
or even make a config option (`--with-msvc-fastcall' ?).
Cheers,
--
Sam Mikes
smikes(a)alumni.hmc.edu