From 48c03d9a75c0069ba82adc9447de974c374c0ed5 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 12 Oct 2020 02:40:00 +0300 Subject: [PATCH] cmake: reduce STDC_HEADER_NAMES list to only relevant headers, 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 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 227fb7e7f..e62218973 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)