CMakeLists.txt
changeset 11280 3a62ecf87af9
parent 11265 9152aa462a82
child 11296 44853f387017
equal deleted inserted replaced
11279:b9b53f45bec6 11280:3a62ecf87af9
   613 # TODO: Can't deactivate on FreeBSD? w/o LIBC, SDL_stdinc.h can't define
   613 # TODO: Can't deactivate on FreeBSD? w/o LIBC, SDL_stdinc.h can't define
   614 # anything.
   614 # anything.
   615 if(LIBC)
   615 if(LIBC)
   616   if(WINDOWS AND NOT MINGW)
   616   if(WINDOWS AND NOT MINGW)
   617     set(HAVE_LIBC TRUE)
   617     set(HAVE_LIBC TRUE)
   618     foreach(_HEADER stdio.h string.h ctype.h math.h)
   618     foreach(_HEADER stdio.h string.h wchar.h ctype.h math.h)
   619       string(TOUPPER "HAVE_${_HEADER}" _UPPER)
   619       string(TOUPPER "HAVE_${_HEADER}" _UPPER)
   620       string(REPLACE "." "_" _HAVE_H ${_UPPER})
   620       string(REPLACE "." "_" _HAVE_H ${_UPPER})
   621       set(${_HAVE_H} 1)
   621       set(${_HAVE_H} 1)
   622     endforeach()
   622     endforeach()
   623     set(HAVE_SIGNAL_H 1)
   623     set(HAVE_SIGNAL_H 1)
   640   else()
   640   else()
   641     set(HAVE_LIBC TRUE)
   641     set(HAVE_LIBC TRUE)
   642     check_include_file(sys/types.h HAVE_SYS_TYPES_H)
   642     check_include_file(sys/types.h HAVE_SYS_TYPES_H)
   643     foreach(_HEADER
   643     foreach(_HEADER
   644             stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h
   644             stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h
   645             strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h)
   645             strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h)
   646       string(TOUPPER "HAVE_${_HEADER}" _UPPER)
   646       string(TOUPPER "HAVE_${_HEADER}" _UPPER)
   647       string(REPLACE "." "_" _HAVE_H ${_UPPER})
   647       string(REPLACE "." "_" _HAVE_H ${_UPPER})
   648       check_include_file("${_HEADER}" ${_HAVE_H})
   648       check_include_file("${_HEADER}" ${_HAVE_H})
   649     endforeach()
   649     endforeach()
   650 
   650