diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-01-13 22:01:39 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-01-13 22:01:39 +0000 |
commit | 0de0e95020af9da8d2bec884964ee491d9b42da5 (patch) | |
tree | 58310d822da114cb45d163aaee17a1541bf5b8f2 /include | |
parent | 35d8fb05017af9ee8514cb317cb37fc2ce5185a9 (diff) |
- Stefan Teleman brought a patch to fix the default curlbuild.h file for the
SunPro compilers.
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curlbuild.h.dist | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/curl/curlbuild.h.dist b/include/curl/curlbuild.h.dist index cabe8c645..fe38f0f59 100644 --- a/include/curl/curlbuild.h.dist +++ b/include/curl/curlbuild.h.dist @@ -439,6 +439,32 @@ # endif /* ===================================== */ +/* SunPro Compilers */ +/* ===================================== */ + +#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) +#include <sys/types.h> +#include <stdint.h> + +# define CURL_TYPEOF_CURL_OFF_T off_t +# define CURL_SIZEOF_CURL_OFF_T 8 +# if defined(__amd64) || defined(__sparcv9) +# define CURL_SIZEOF_LONG 8 +# define CURL_FORMAT_CURL_OFF_T "ld" +# define CURL_FORMAT_CURL_OFF_TU "lu" +# define CURL_FORMAT_OFF_T "%ld" +# define CURL_SUFFIX_CURL_OFF_T L +# define CURL_SUFFIX_CURL_OFF_TU UL +# else +# define CURL_SIZEOF_LONG 4 +# define CURL_FORMAT_CURL_OFF_T "lld" +# define CURL_FORMAT_CURL_OFF_TU "llu" +# define CURL_FORMAT_OFF_T "%lld" +# define CURL_SUFFIX_CURL_OFF_T LL +# define CURL_SUFFIX_CURL_OFF_TU ULL +# endif + +/* ===================================== */ /* KEEP MSVC THE PENULTIMATE ENTRY */ /* ===================================== */ |