diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-01-16 12:31:24 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-01-16 12:31:24 +0000 |
commit | bb12d44471346ccc458a9edebba3c2238c113955 (patch) | |
tree | d71bd1a0ea86019eb79c11d62640c064987fab7c /lib/curl_endian.c | |
parent | bcf07f8a4bdc1bfce3cb12ea22af7d03420efa50 (diff) | |
download | curl-bb12d44471346ccc458a9edebba3c2238c113955.tar.gz |
curl_endian: Fixed build when 64-bit integers are not supported
Bug: http://curl.haxx.se/mail/lib-2015-01/0094.html
Reported-by: John E. Malmberg
Diffstat (limited to 'lib/curl_endian.c')
-rw-r--r-- | lib/curl_endian.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/curl_endian.c b/lib/curl_endian.c index 14a28834d..eb536dea6 100644 --- a/lib/curl_endian.c +++ b/lib/curl_endian.c @@ -62,6 +62,7 @@ unsigned int Curl_read32_le(unsigned char *buf) ((unsigned int)buf[2] << 16) | ((unsigned int)buf[3] << 24); } +#if (CURL_SIZEOF_CURL_OFF_T > 4) /* * Curl_read64_le() * @@ -97,6 +98,8 @@ unsigned __int64 Curl_read64_le(unsigned char *buf) } #endif +#endif /* CURL_SIZEOF_CURL_OFF_T > 4 */ + /* * Curl_read16_be() * @@ -227,4 +230,4 @@ void Curl_write64_le(const __int64 value, unsigned char *buffer) Curl_write32_le((int)value, buffer); Curl_write32_le((int)(value >> 32), buffer + 4); } -#endif +#endif /* CURL_SIZEOF_CURL_OFF_T > 4 */ |