64 bit Cygwin target and _WIN64

Peter Rosin peda@lysator.liu.se
Wed Jul 18 16:15:00 GMT 2012


On 2012-07-18 14:55, Corinna Vinschen wrote:
> On the other hand, an application which provides Windows and POSIX
> functions will test for _WIN32 with a high probability:
> 
> #ifdef _WIN32
> #ifdef _WIN64
> call foo_win64
> #else
> call foo_win32
> #endif
> #else
> call foo_posix
> #endif

Some would perhaps write that as:

#if defiend _WIN64
call foo_win64
#elif defined _WIN32
call foo_win32
#else
call foo_posix
#endif

Cheers,
Peter



More information about the Cygwin-developers mailing list