Skip to content

cmake: re-add missed C89 headers for specific detections - #12043

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cmake-readd-std-hdrs
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cmake-readd-std-hdrs

Conversation

@vszakats

@vszakats vszakats commented Oct 5, 2023 •

Copy link
Copy Markdown
Member

We removed C89 setjmp.h and signal.h detections and excluded them
from the global header list we use when detecting functions [1]. Then
missed to re-add these headers to the specific functions which need
them to be detected [2]. Fix this omission in this patch.

[1] Follow-up to 3795fcd #11951
[2] Follow-up to 96c2990 #11940

Closes #12043


sigsetjmp has a second detection attempt documented as 'special' in the comments. However this detection uses the same method as the first attempt, with the difference of using setjmp.h header only, without including the rest of non-standard headers detected. It detects both function and macro like the first attempt. This second attempt seems redundant. It's been there since the initial commit of CMake support.

We removed C89 `setjmp.h` and `signal.h` detections and excluded them
from the global header list we use for detecting functions [1]. Then
missed to re-add these headers to the specific functions which need
them to be detected [2]. Fix this omission in this patch.

`sigsetjmp` has a second detection attempt documented as 'special' in
the comment. However this detection uses the same method as the first
attempt, with the difference of using `setjmp.h` header only, without
including the rest of non-standard headers detected. It detects both
function and macro like the first attempt. This second attempt seems
redundant. It's been there since the initial commit of CMake support.

[1] Follow-up to 3795fcd curl#11951
[2] Follow-up to 96c2990 curl#11940

Closes #xxxxx
@vszakats vszakats added the cmake label Oct 5, 2023
@github-actions github-actions Bot added the build label Oct 5, 2023
@vszakats vszakats changed the title cmake: re-add missed std headers for specific detections cmake: re-add missed C89 headers for specific detections Oct 6, 2023
@vszakats vszakats closed this in 8bc474f Oct 6, 2023
@vszakats
vszakats deleted the cmake-readd-std-hdrs branch October 6, 2023 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant