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:
parent
5a3b55ed7c
commit
860f0a2ddc
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue