diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-11-02 10:12:22 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-11-02 10:12:22 +0000 |
commit | 24d47a6e07304cf0921f2d30734b3c64360773c3 (patch) | |
tree | 03bae425fc10d6c083e866a3e1ab5bf620dffe42 /include | |
parent | 8a66584db4ab3bd1668a685785da7108f7550e95 (diff) |
Paul Nolan fix to make libcurl build nicely on Windows CE
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 6 | ||||
-rw-r--r-- | include/curl/multi.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index c631fc119..ca2c78eb3 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -52,10 +52,16 @@ extern "C" { * platforms. We also provide a CURL_FORMAT_OFF_T define to use in *printf * format strings when outputting a variable of type curl_off_t. */ + #if defined(_MSC_VER) || defined(__LCC__) /* MSVC */ +#ifdef _WIN32_WCE + typedef long curl_off_t; +#define CURL_FORMAT_OFF_T "%ld" +#else typedef signed __int64 curl_off_t; #define CURL_FORMAT_OFF_T "%I64d" +#endif #else /* _MSC_VER || __LCC__ */ #if (defined(__GNUC__) && defined(WIN32)) || defined(__WATCOMC__) /* gcc on windows or Watcom */ diff --git a/include/curl/multi.h b/include/curl/multi.h index da9df2e15..65b672d2c 100644 --- a/include/curl/multi.h +++ b/include/curl/multi.h @@ -51,7 +51,8 @@ #define WIN32 1 #endif -#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) +#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__GNUC__) || \ + defined(__MINGW32__) #if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H)) /* The check above prevents the winsock2 inclusion if winsock.h already was included, since they can't co-exist without problems */ |