]> granicus.if.org Git - curl/commitdiff
curl_endian: Fixed build when 64-bit integers are not supported (Part 2)
authorSteve Holme <steve_holme@hotmail.com>
Fri, 16 Jan 2015 23:01:27 +0000 (23:01 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 16 Jan 2015 23:01:27 +0000 (23:01 +0000)
Missed Curl_read64_be() in commit bb12d44471 :(

lib/curl_endian.c

index eb536dea6250c7c69cee55b27871d512615519c1..bcd66ed84bd1e6e28f2824285b8c62c887cc01f8 100644 (file)
@@ -138,6 +138,7 @@ unsigned int Curl_read32_be(unsigned char *buf)
          ((unsigned int)buf[2] << 8) | ((unsigned int)buf[3]);
 }
 
+#if (CURL_SIZEOF_CURL_OFF_T > 4)
 /*
  * Curl_read64_be()
  *
@@ -173,6 +174,8 @@ unsigned __int64 Curl_read64_be(unsigned char *buf)
 }
 #endif
 
+#endif /* CURL_SIZEOF_CURL_OFF_T > 4 */
+
 /*
  * Curl_write16_le()
  *