Skip to content

cmake: assume _fseeki64 and no fseeko on Windows - #11950

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

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cmake-fseeki64-windows

Conversation

@vszakats

@vszakats vszakats commented Sep 26, 2023 •

Copy link
Copy Markdown
Member

_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

@vszakats vszakats added cmake Windows Windows-specific labels Sep 26, 2023
@vszakats vszakats changed the title cmake: assume _fseeki64 and no `fseeko' on Windows cmake: assume _fseeki64 and no fseeko on Windows Sep 26, 2023
@github-actions github-actions Bot added the build label Sep 26, 2023
@vszakats
vszakats force-pushed the cmake-fseeki64-windows branch from 6ed207f to e821f1e Compare September 26, 2023 10:04
@vszakats
vszakats force-pushed the cmake-fseeki64-windows branch from e821f1e to cb1f07f Compare September 26, 2023 10:06
`_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
@vszakats
vszakats force-pushed the cmake-fseeki64-windows branch from cb1f07f to 8f699ff Compare September 26, 2023 10:07
@vszakats vszakats closed this in 8e74c07 Sep 26, 2023
@vszakats
vszakats deleted the cmake-fseeki64-windows branch September 26, 2023 14:27
vszakats added a commit that referenced this pull request Nov 11, 2024
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant