summaryrefslogtreecommitdiff
path: root/Utilities/cmcurl/lib/curl_setup.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-11-03 13:17:24 -0500
committerBrad King <brad.king@kitware.com>2014-11-10 10:00:45 -0500
commit860f0a2ddc4b586d639caea1f9c7c10b381224e6 (patch)
tree37094db3d311448c51d22c1116c505d6946aa68c /Utilities/cmcurl/lib/curl_setup.h
parent5a3b55ed7c0419aa09adba38db41a258118dd580 (diff)
downloadcmake-860f0a2ddc4b586d639caea1f9c7c10b381224e6.tar.gz
curl: Select file APIs on Windows
Choose small or large file support based on capabilities of compiler and target platform.
Diffstat (limited to 'Utilities/cmcurl/lib/curl_setup.h')
-rw-r--r--Utilities/cmcurl/lib/curl_setup.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Utilities/cmcurl/lib/curl_setup.h b/Utilities/cmcurl/lib/curl_setup.h
index 173731c492..12238ca0e2 100644
--- a/Utilities/cmcurl/lib/curl_setup.h
+++ b/Utilities/cmcurl/lib/curl_setup.h
@@ -345,6 +345,17 @@
#include <clib.h>
#endif
+/* Default Windows file API selection. */
+#ifdef _WIN32
+# if defined(_MSC_VER) && (_INTEGRAL_MAX_BITS >= 64)
+# define USE_WIN32_LARGE_FILES
+# elif defined(__MINGW32__)
+# define USE_WIN32_LARGE_FILES
+# else
+# define USE_WIN32_SMALL_FILES
+# endif
+#endif
+
/*
* Large file (>2Gb) support using WIN32 functions.
*/