curl: Select file APIs on Windows

Choose small or large file support based on capabilities of compiler
and target platform.
This commit is contained in:
Brad King 2014-11-03 13:17:24 -05:00
parent 5a3b55ed7c
commit 860f0a2ddc
2 changed files with 11 additions and 4 deletions

View File

@ -906,10 +906,6 @@
/* if SSL is enabled */ /* if SSL is enabled */
#cmakedefine USE_SSLEAY 1 #cmakedefine USE_SSLEAY 1
/* Define to 1 if you are building a Windows target without large file
support. */
#cmakedefine USE_WIN32_LARGE_FILES 1
/* to enable SSPI support */ /* to enable SSPI support */
#cmakedefine USE_WINDOWS_SSPI 1 #cmakedefine USE_WINDOWS_SSPI 1

View File

@ -345,6 +345,17 @@
#include <clib.h> #include <clib.h>
#endif #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. * Large file (>2Gb) support using WIN32 functions.
*/ */