mirror of https://github.com/encounter/SDL.git
Added wchar.h to fix build on some platforms with new wcs* functions
This commit is contained in:
parent
7af3786def
commit
f8de064c0a
|
@ -615,7 +615,7 @@ endif()
|
||||||
if(LIBC)
|
if(LIBC)
|
||||||
if(WINDOWS AND NOT MINGW)
|
if(WINDOWS AND NOT MINGW)
|
||||||
set(HAVE_LIBC TRUE)
|
set(HAVE_LIBC TRUE)
|
||||||
foreach(_HEADER stdio.h string.h ctype.h math.h)
|
foreach(_HEADER stdio.h string.h wchar.h ctype.h math.h)
|
||||||
string(TOUPPER "HAVE_${_HEADER}" _UPPER)
|
string(TOUPPER "HAVE_${_HEADER}" _UPPER)
|
||||||
string(REPLACE "." "_" _HAVE_H ${_UPPER})
|
string(REPLACE "." "_" _HAVE_H ${_UPPER})
|
||||||
set(${_HAVE_H} 1)
|
set(${_HAVE_H} 1)
|
||||||
|
@ -642,7 +642,7 @@ if(LIBC)
|
||||||
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
|
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
|
||||||
foreach(_HEADER
|
foreach(_HEADER
|
||||||
stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h
|
stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h
|
||||||
strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h)
|
strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h)
|
||||||
string(TOUPPER "HAVE_${_HEADER}" _UPPER)
|
string(TOUPPER "HAVE_${_HEADER}" _UPPER)
|
||||||
string(REPLACE "." "_" _HAVE_H ${_UPPER})
|
string(REPLACE "." "_" _HAVE_H ${_UPPER})
|
||||||
check_include_file("${_HEADER}" ${_HAVE_H})
|
check_include_file("${_HEADER}" ${_HAVE_H})
|
||||||
|
|
|
@ -16167,7 +16167,7 @@ $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
|
for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
|
||||||
do :
|
do :
|
||||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
||||||
|
|
|
@ -234,7 +234,7 @@ if test x$enable_libc = xyes; then
|
||||||
|
|
||||||
dnl Check for C library headers
|
dnl Check for C library headers
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS(sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h)
|
AC_CHECK_HEADERS(sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h)
|
||||||
|
|
||||||
dnl Check for typedefs, structures, etc.
|
dnl Check for typedefs, structures, etc.
|
||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
|
|
|
@ -73,6 +73,7 @@
|
||||||
#cmakedefine HAVE_MEMORY_H 1
|
#cmakedefine HAVE_MEMORY_H 1
|
||||||
#cmakedefine HAVE_STRING_H 1
|
#cmakedefine HAVE_STRING_H 1
|
||||||
#cmakedefine HAVE_STRINGS_H 1
|
#cmakedefine HAVE_STRINGS_H 1
|
||||||
|
#cmakedefine HAVE_WCHAR_H 1
|
||||||
#cmakedefine HAVE_INTTYPES_H 1
|
#cmakedefine HAVE_INTTYPES_H 1
|
||||||
#cmakedefine HAVE_STDINT_H 1
|
#cmakedefine HAVE_STDINT_H 1
|
||||||
#cmakedefine HAVE_CTYPE_H 1
|
#cmakedefine HAVE_CTYPE_H 1
|
||||||
|
|
|
@ -73,6 +73,7 @@
|
||||||
#undef HAVE_MEMORY_H
|
#undef HAVE_MEMORY_H
|
||||||
#undef HAVE_STRING_H
|
#undef HAVE_STRING_H
|
||||||
#undef HAVE_STRINGS_H
|
#undef HAVE_STRINGS_H
|
||||||
|
#undef HAVE_WCHAR_H
|
||||||
#undef HAVE_INTTYPES_H
|
#undef HAVE_INTTYPES_H
|
||||||
#undef HAVE_STDINT_H
|
#undef HAVE_STDINT_H
|
||||||
#undef HAVE_CTYPE_H
|
#undef HAVE_CTYPE_H
|
||||||
|
|
|
@ -62,6 +62,9 @@
|
||||||
#ifdef HAVE_STRINGS_H
|
#ifdef HAVE_STRINGS_H
|
||||||
# include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_WCHAR_H
|
||||||
|
# include <wchar.h>
|
||||||
|
#endif
|
||||||
#if defined(HAVE_INTTYPES_H)
|
#if defined(HAVE_INTTYPES_H)
|
||||||
# include <inttypes.h>
|
# include <inttypes.h>
|
||||||
#elif defined(HAVE_STDINT_H)
|
#elif defined(HAVE_STDINT_H)
|
||||||
|
|
Loading…
Reference in New Issue