diff options
author | Yang Tse <yangsita@gmail.com> | 2008-08-28 16:08:31 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-08-28 16:08:31 +0000 |
commit | 2ae7d2e6ea8ce9a4b6f72189f3f959fae144337f (patch) | |
tree | c68c85d83ff950731f79a2de1f8ac8a1ae2278da /include | |
parent | ffc490ef89c2d0edfad5c3a271324424845672fc (diff) |
Adjust curl_off_t definitions for DJGPP.
Ancient versions of DJGPP do not have a 64-bit data type.
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curlbuild.h.dist | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/include/curl/curlbuild.h.dist b/include/curl/curlbuild.h.dist index eacf6ad3b..cabe8c645 100644 --- a/include/curl/curlbuild.h.dist +++ b/include/curl/curlbuild.h.dist @@ -153,15 +153,26 @@ /* EXTERNAL INTERFACE SETTINGS FOR NON-CONFIGURE SYSTEMS ONLY */ /* ================================================================ */ -#if defined(__DJGPP__) -# define CURL_SIZEOF_LONG 4 -# define CURL_TYPEOF_CURL_OFF_T long -# define CURL_FORMAT_CURL_OFF_T "ld" -# define CURL_FORMAT_CURL_OFF_TU "lu" -# define CURL_FORMAT_OFF_T "%ld" -# define CURL_SIZEOF_CURL_OFF_T 4 -# define CURL_SUFFIX_CURL_OFF_T L -# define CURL_SUFFIX_CURL_OFF_TU UL +#if defined(__DJGPP__) || defined(__GO32__) +# if defined(__DJGPP__) && (__DJGPP__ > 1) +# define CURL_SIZEOF_LONG 4 +# define CURL_TYPEOF_CURL_OFF_T long long +# define CURL_FORMAT_CURL_OFF_T "lld" +# define CURL_FORMAT_CURL_OFF_TU "llu" +# define CURL_FORMAT_OFF_T "%lld" +# define CURL_SIZEOF_CURL_OFF_T 8 +# define CURL_SUFFIX_CURL_OFF_T LL +# define CURL_SUFFIX_CURL_OFF_TU ULL +# else +# define CURL_SIZEOF_LONG 4 +# define CURL_TYPEOF_CURL_OFF_T long +# define CURL_FORMAT_CURL_OFF_T "ld" +# define CURL_FORMAT_CURL_OFF_TU "lu" +# define CURL_FORMAT_OFF_T "%ld" +# define CURL_SIZEOF_CURL_OFF_T 4 +# define CURL_SUFFIX_CURL_OFF_T L +# define CURL_SUFFIX_CURL_OFF_TU UL +# endif #elif defined(__SALFORDC__) # define CURL_SIZEOF_LONG 4 |