This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 64 bit Cygwin target and _WIN64


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]