Skip to content

build: use _fseeki64() on Windows, drop detections - #15526

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:fseeki64
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:fseeki64

Conversation

@vszakats

@vszakats vszakats commented Nov 8, 2024 •

Copy link
Copy Markdown
Member

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:

Regression from 8e34505 #15164

Reported-by: Maarten Billemont
Fixes #15525

Detecting `_fseeki64` can be tricky, but also seems redundant given that
it's Windows-only and we already opt-in all Windows builds to use it (in
CMake).

Drop detections and use it in all Windows builds with large file support
enabled.

Regression-from: 8e34505 curl#15164

Reported-by: Maarten Billemont
Fixes curl#15525
@vszakats vszakats closed this in 8b76a8a Nov 11, 2024
@vszakats
vszakats deleted the fseeki64 branch November 11, 2024 13:27
@vszakats vszakats added cmake Windows Windows-specific appleOS specific to an Apple operating system and removed regression labels Nov 12, 2024
vszakats added a commit that referenced this pull request Jan 12, 2025
Large file support requires `_fseeki64()`. This function is offered in
VS2005 and upper.

VS2003 has it in the static CRT only, with declaration missing from
headers, so it's not usable.

Ref: https://archive.org/details/X10-38445 (MS Visual Studio .NET 2003)
Ref: 8b76a8a #15526

Closes #15958
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
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
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Large file support requires `_fseeki64()`. This function is offered in
VS2005 and upper.

VS2003 has it in the static CRT only, with declaration missing from
headers, so it's not usable.

Ref: https://archive.org/details/X10-38445 (MS Visual Studio .NET 2003)
Ref: 8b76a8a curl#15526

Closes curl#15958
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appleOS specific to an Apple operating system build cmake Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

_fseeki64 incorrectly detected as found when cross-compiling for iOS.

2 participants