Repository navigation
Conversation
Follow-up to 9c7165e which added an fseeko wrapper to the lib that calls _fseeki64 if it is available. Closes #xxxx
|
Agreed, and we should also pre-cache this detection via Shouldn't we check for |
|
I was not aware that curl supported pre-generated configs. |
That's probably not necessary. If _fseeki64 is available then it can be used even if large file support is not enabled, but on any modern system I don't know where that would happen. config-win32 supports some older systems that (I guess?) would not have _fseeki64 so I'm ok with it as is. I just compiled a test program in Visual Studio 2008 that calls _fseeki64 and it's available there, so I think we'd have to go really far back to find some time that it is not supported. |
`_fseeki64` is present in mingw-w64 1.0 (2011-09-26) headers, and at least Watcom C 1.9 (2010) headers and MSVS 2008 [1]. `fseeko` is not present in any of these. (mingw-w64 1.0 also offers `fseeko64`.) [1] curl#11944 (comment) Follow-up to 9c7165e curl#11918 Closes curl#11950
`_fseeki64` is present in mingw-w64 1.0 (2011-09-26) headers, and at least Watcom C 1.9 (2010) headers and MSVS 2008 [1]. `fseeko` is not present in any of these. (mingw-w64 1.0 also offers `fseeko64`.) [1] #11944 (comment) Follow-up to 9c7165e #11918 Closes #11950
A recent update caused CMake builds to mis-detect this symbol on iOS. Auto-detection also seems redundant given that it's a Windows-only function and most Windows builds were already opted-in. Drop detections and use it in all Windows builds with large file support enabled. Feature history: - pririotizing for Windows: aaacd02 #14678 - Windows opt-in cmake: 8e74c07 #11950 - Windows opt-in: aa6c94c #11944 - use in libcurl: 9c7165e #11918 - use in example: 817d1c0 Regression from 8e34505 #15164 Reported-by: Maarten Billemont Fixes #15525 Closes #15526
A recent update caused CMake builds to mis-detect this symbol on iOS. Auto-detection also seems redundant given that it's a Windows-only function and most Windows builds were already opted-in. Drop detections and use it in all Windows builds with large file support enabled. Feature history: - pririotizing for Windows: aaacd02 curl#14678 - Windows opt-in cmake: 8e74c07 curl#11950 - Windows opt-in: aa6c94c curl#11944 - use in libcurl: 9c7165e curl#11918 - use in example: 817d1c0 Regression from 8e34505 curl#15164 Reported-by: Maarten Billemont Fixes curl#15525 Closes curl#15526
Follow-up to 9c7165e which added an fseeko wrapper to the lib that calls _fseeki64 if it is available.
Closes #xxxx
Follow up to #11918. I'm not entirely sure about the logic here but I think we need to do something for builds that use the pre-generated win32 configuration file config-win32.h.
/cc @ncopa