Skip to content

Commit

Permalink
cmake: reduce STDC_HEADER_NAMES list to only relevant headers,
Browse files Browse the repository at this point in the history
i.e. stddef.h, stdarg.h, stdlib.h, string.h, stdio.h, wchar.h, float.h.
Fixes issue described at:
https://bugzilla.libsdl.org/show_bug.cgi?id=4885#c2
  • Loading branch information
sezero committed Oct 11, 2020
1 parent 196cda6 commit 48c03d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -794,7 +794,7 @@ if(LIBC)
check_include_file("${_HEADER}" ${_HAVE_H})
endforeach()

set(STDC_HEADER_NAMES "dlfcn.h;stdint.h;stddef.h;inttypes.h;stdlib.h;stdio.h;strings.h;wchar.h;string.h;float.h")
set(STDC_HEADER_NAMES "stddef.h;stdarg.h;stdlib.h;string.h;stdio.h;wchar.h;float.h")
check_include_files("${STDC_HEADER_NAMES}" STDC_HEADERS)
check_type_size("size_t" SIZEOF_SIZE_T)
check_symbol_exists(M_PI math.h HAVE_M_PI)
Expand Down

0 comments on commit 48c03d9

Please sign in to comment.