summaryrefslogtreecommitdiff
path: root/lib/curl_endian.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-01-01 20:09:50 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-01-01 20:45:00 +0000
commit43792592cae9e380c317691904d0c8a7cec370d1 (patch)
tree82ac38c7ca61c455bcab539b0bc343173bc2693f /lib/curl_endian.h
parent5fbcb9a1fa3c212f6bca8094454ec61ccb926b3b (diff)
downloadcurl-43792592cae9e380c317691904d0c8a7cec370d1.tar.gz
endian: Added 64-bit integer read function
Diffstat (limited to 'lib/curl_endian.h')
-rw-r--r--lib/curl_endian.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/curl_endian.h b/lib/curl_endian.h
index 79eb3e8f6..47a7ae6b8 100644
--- a/lib/curl_endian.h
+++ b/lib/curl_endian.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -28,6 +28,15 @@ unsigned short Curl_read16_le(unsigned char *buf);
/* Converts a 32-bit integer from little endian */
unsigned int Curl_read32_le(unsigned char *buf);
+#if (CURL_SIZEOF_CURL_OFF_T > 4)
+/* Converts a 64-bit integer from little endian */
+#if defined(HAVE_LONGLONG)
+unsigned long long Curl_read64_le(unsigned char *buf);
+#else
+unsigned __int64 Curl_read64_le(unsigned char *buf);
+#endif
+#endif
+
/* Converts a 16-bit integer to little endian */
void Curl_write16_le(const short value, unsigned char *buffer);