Assume that stdint.h is available on Windows with compilers other than MSVC <= 2008

This commit is contained in:
Cameron Cawley authored and Sam Lantinga committed 2022-09-05 09:01:31 -07:00
1 parent ef988fe184
commit fd93f817ba
8 files changed
+52 -201

No files matched your search

+2
View File
@@ -930,6 +930,7 @@ endif()
if(SDL_LIBC)
if(WINDOWS AND NOT MINGW)
set(HAVE_LIBC TRUE)
check_include_file(stdint.h HAVE_STDINT_H)
foreach(_HEADER stdio.h string.h wchar.h ctype.h math.h limits.h)
string(TOUPPER "HAVE_${_HEADER}" _UPPER)
string(REPLACE "." "_" _HAVE_H ${_UPPER})
@@ -1043,6 +1044,7 @@ else()
if(WINDOWS)
set(HAVE_STDARG_H 1)
set(HAVE_STDDEF_H 1)
check_include_file(stdint.h HAVE_STDINT_H)
endif()
endif()