1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Changes for PellesC compiler under Win32.

This commit is contained in:
Gisle Vanem 2005-12-20 22:20:42 +00:00
parent 7b51aafa86
commit 9e61dfe85e

View File

@ -65,9 +65,11 @@ extern "C" {
* We want the typedef curl_off_t setup for large file support on all * We want the typedef curl_off_t setup for large file support on all
* platforms. We also provide a CURL_FORMAT_OFF_T define to use in *printf * 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. * format strings when outputting a variable of type curl_off_t.
*
* Note: "pocc -Ze" is MSVC compatibily mode and this sets _MSC_VER!
*/ */
#if defined(_MSC_VER) || (defined(__LCC__) && defined(WIN32)) #if (defined(_MSC_VER) && !defined(__POCC__)) || (defined(__LCC__) && defined(WIN32))
/* MSVC */ /* MSVC */
#ifdef _WIN32_WCE #ifdef _WIN32_WCE
typedef long curl_off_t; typedef long curl_off_t;
@ -76,7 +78,7 @@ extern "C" {
typedef signed __int64 curl_off_t; typedef signed __int64 curl_off_t;
#define CURL_FORMAT_OFF_T "%I64d" #define CURL_FORMAT_OFF_T "%I64d"
#endif #endif
#else /* _MSC_VER || (defined(__LCC__) && defined(WIN32)) */ #else /* (_MSC_VER && !__POCC__) || (__LCC__ && WIN32) */
#if (defined(__GNUC__) && defined(WIN32)) || defined(__WATCOMC__) #if (defined(__GNUC__) && defined(WIN32)) || defined(__WATCOMC__)
/* gcc on windows or Watcom */ /* gcc on windows or Watcom */
typedef long long curl_off_t; typedef long long curl_off_t;
@ -108,7 +110,7 @@ extern "C" {
#define CURL_FORMAT_OFF_T "%ld" #define CURL_FORMAT_OFF_T "%ld"
#endif #endif
#endif /* GCC or Watcom on Windows */ #endif /* GCC or Watcom on Windows */
#endif /* _MSC_VER || (defined(__LCC__) && defined(WIN32)) */ #endif /* (_MSC_VER && !__POCC__) || (__LCC__ && WIN32) */
#ifdef UNDEF_FILE_OFFSET_BITS #ifdef UNDEF_FILE_OFFSET_BITS
/* this was defined above for our checks, undefine it again */ /* this was defined above for our checks, undefine it again */
@ -400,7 +402,8 @@ typedef enum {
* platforms. * platforms.
*/ */
#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \ #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \
defined(__HP_aCC) || defined(__BORLANDC__) || defined(__LCC__) defined(__HP_aCC) || defined(__BORLANDC__) || defined(__LCC__) || \
defined(__POCC__)
/* This compiler is believed to have an ISO compatible preprocessor */ /* This compiler is believed to have an ISO compatible preprocessor */
#define CURL_ISOCPP #define CURL_ISOCPP
#else #else