diff options
author | Yang Tse <yangsita@gmail.com> | 2007-11-08 18:13:54 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-11-08 18:13:54 +0000 |
commit | 32195c673de46a48457709bd4efa5c63525e1d68 (patch) | |
tree | 127f45b0db924c1c56b613c321f3428a880c1254 /src | |
parent | b99a61c5b046d1a9b2c5f2e071233bb9c0458210 (diff) | |
download | curl-32195c673de46a48457709bd4efa5c63525e1d68.tar.gz |
Define WIN32 when build target is Win32 API.
This also defines it for WinCE even though it is a subset of WIN32.
Diffstat (limited to 'src')
-rw-r--r-- | src/setup.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/setup.h b/src/setup.h index c66b8e143..41ba43084 100644 --- a/src/setup.h +++ b/src/setup.h @@ -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 |