Define WIN32 when build target is Win32 API.

This also defines it for WinCE even though it is a subset of WIN32.
This commit is contained in:
Yang Tse 2007-11-08 18:13:54 +00:00
parent b99a61c5b0
commit 32195c673d
6 changed files with 36 additions and 24 deletions

View file

@ -25,13 +25,11 @@
#define CURL_NO_OLDIES
#if !defined(WIN32) && defined(__WIN32__)
/* Borland fix */
#define WIN32
#endif
/*
* Define WIN32 when build target is Win32 API
*/
#if !defined(WIN32) && defined(_WIN32)
/* VS2005 on x64 fix */
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
#define WIN32
#endif