minor updates to libc function checks
parent
19fa85d8af
commit
bb9e049d1d
|
@ -779,7 +779,7 @@ if(LIBC)
|
||||||
set(HAVE_SIGNAL_H 1)
|
set(HAVE_SIGNAL_H 1)
|
||||||
foreach(_FN
|
foreach(_FN
|
||||||
malloc calloc realloc free qsort abs memset memcpy memmove memcmp
|
malloc calloc realloc free qsort abs memset memcpy memmove memcmp
|
||||||
wcslen wcsdup wcsstr wcscmp wcsncmp _wcsicmp _wcsnicmp
|
wcslen _wcsdup wcsdup wcsstr wcscmp wcsncmp _wcsicmp _wcsnicmp
|
||||||
strlen _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
|
strlen _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
|
||||||
_ultoa strtol strtoul strtoll strtod atoi atof strcmp strncmp
|
_ultoa strtol strtoul strtoll strtod atoi atof strcmp strncmp
|
||||||
_stricmp _strnicmp sscanf
|
_stricmp _strnicmp sscanf
|
||||||
|
@ -818,10 +818,10 @@ if(LIBC)
|
||||||
foreach(_FN
|
foreach(_FN
|
||||||
strtod malloc calloc realloc free getenv setenv putenv unsetenv
|
strtod malloc calloc realloc free getenv setenv putenv unsetenv
|
||||||
qsort abs bcopy memset memcpy memmove memcmp strlen strlcpy strlcat
|
qsort abs bcopy memset memcpy memmove memcmp strlen strlcpy strlcat
|
||||||
_strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa
|
_strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r
|
||||||
_uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull
|
itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull
|
||||||
atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp
|
atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp
|
||||||
wcscmp wcsdup wcslcat wcslcpy wcslen wcsncmp wcsstr
|
wcscmp _wcsdup wcsdup wcslcat wcslcpy wcslen wcsncmp wcsstr
|
||||||
wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp
|
wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp
|
||||||
sscanf vsscanf vsnprintf fopen64 fseeko fseeko64 _Exit
|
sscanf vsscanf vsnprintf fopen64 fseeko fseeko64 _Exit
|
||||||
)
|
)
|
||||||
|
|
|
@ -17070,7 +17070,7 @@ fi
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
|
for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
|
||||||
do :
|
do :
|
||||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
||||||
|
@ -22886,7 +22886,7 @@ int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
|
||||||
accentmap_t accTable;
|
accentmap_t accTable;
|
||||||
ioctl(0, KDENABIO, 1);
|
ioctl(0, KDENABIO, 1);
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
|
@ -345,7 +345,7 @@ if test x$enable_libc = xyes; then
|
||||||
AC_DEFINE(HAVE_MPROTECT, 1, [ ])
|
AC_DEFINE(HAVE_MPROTECT, 1, [ ])
|
||||||
]),
|
]),
|
||||||
)
|
)
|
||||||
AC_CHECK_FUNCS(malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit)
|
AC_CHECK_FUNCS(malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit)
|
||||||
|
|
||||||
AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
|
AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
|
||||||
AC_CHECK_FUNCS(acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf)
|
AC_CHECK_FUNCS(acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf)
|
||||||
|
@ -2670,7 +2670,7 @@ CheckInputKBIO()
|
||||||
#include <sys/kbio.h>
|
#include <sys/kbio.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
],[
|
],[
|
||||||
accentmap_t accTable;
|
accentmap_t accTable;
|
||||||
ioctl(0, KDENABIO, 1);
|
ioctl(0, KDENABIO, 1);
|
||||||
],[
|
],[
|
||||||
use_input_kbio=yes
|
use_input_kbio=yes
|
||||||
|
|
|
@ -96,6 +96,7 @@
|
||||||
#cmakedefine HAVE_WCSLEN 1
|
#cmakedefine HAVE_WCSLEN 1
|
||||||
#cmakedefine HAVE_WCSLCPY 1
|
#cmakedefine HAVE_WCSLCPY 1
|
||||||
#cmakedefine HAVE_WCSLCAT 1
|
#cmakedefine HAVE_WCSLCAT 1
|
||||||
|
#cmakedefine HAVE__WCSDUP 1
|
||||||
#cmakedefine HAVE_WCSDUP 1
|
#cmakedefine HAVE_WCSDUP 1
|
||||||
#cmakedefine HAVE_WCSSTR 1
|
#cmakedefine HAVE_WCSSTR 1
|
||||||
#cmakedefine HAVE_WCSCMP 1
|
#cmakedefine HAVE_WCSCMP 1
|
||||||
|
|
|
@ -100,6 +100,7 @@
|
||||||
#undef HAVE_WCSLEN
|
#undef HAVE_WCSLEN
|
||||||
#undef HAVE_WCSLCPY
|
#undef HAVE_WCSLCPY
|
||||||
#undef HAVE_WCSLCAT
|
#undef HAVE_WCSLCAT
|
||||||
|
#undef HAVE__WCSDUP
|
||||||
#undef HAVE_WCSDUP
|
#undef HAVE_WCSDUP
|
||||||
#undef HAVE_WCSSTR
|
#undef HAVE_WCSSTR
|
||||||
#undef HAVE_WCSCMP
|
#undef HAVE_WCSCMP
|
||||||
|
|
|
@ -105,14 +105,22 @@
|
||||||
#define HAVE_WCSCMP 1
|
#define HAVE_WCSCMP 1
|
||||||
#define HAVE__WCSICMP 1
|
#define HAVE__WCSICMP 1
|
||||||
#define HAVE__WCSNICMP 1
|
#define HAVE__WCSNICMP 1
|
||||||
|
#define HAVE_WCSLEN 1
|
||||||
|
#define HAVE_WCSLCPY 1
|
||||||
|
#define HAVE_WCSLCAT 1
|
||||||
|
/* #undef HAVE_WCSDUP */
|
||||||
|
#define HAVE__WCSDUP 1
|
||||||
|
#define HAVE_WCSSTR 1
|
||||||
|
#define HAVE_WCSCMP 1
|
||||||
|
#define HAVE_WCSNCMP 1
|
||||||
#define HAVE_STRLEN 1
|
#define HAVE_STRLEN 1
|
||||||
#define HAVE_STRLCPY 1
|
#define HAVE_STRLCPY 1
|
||||||
#define HAVE_STRLCAT 1
|
#define HAVE_STRLCAT 1
|
||||||
#define HAVE__STRREV 1
|
#define HAVE__STRREV 1
|
||||||
#define HAVE__STRUPR 1
|
#define HAVE__STRUPR 1
|
||||||
#define HAVE__STRLWR 1
|
#define HAVE__STRLWR 1
|
||||||
#define HAVE_INDEX 1
|
/* #undef HAVE_INDEX */
|
||||||
#define HAVE_RINDEX 1
|
/* #undef HAVE_RINDEX */
|
||||||
#define HAVE_STRCHR 1
|
#define HAVE_STRCHR 1
|
||||||
#define HAVE_STRRCHR 1
|
#define HAVE_STRRCHR 1
|
||||||
#define HAVE_STRSTR 1
|
#define HAVE_STRSTR 1
|
||||||
|
@ -129,15 +137,6 @@
|
||||||
#define HAVE_STRTOD 1
|
#define HAVE_STRTOD 1
|
||||||
#define HAVE_ATOI 1
|
#define HAVE_ATOI 1
|
||||||
#define HAVE_ATOF 1
|
#define HAVE_ATOF 1
|
||||||
#define HAVE_WCSLEN 1
|
|
||||||
#define HAVE_WCSLCPY 1
|
|
||||||
#define HAVE_WCSLCAT 1
|
|
||||||
/* #undef HAVE_WCSDUP */
|
|
||||||
#define HAVE__WCSDUP 1
|
|
||||||
/* #define wcsdup _wcsdup */
|
|
||||||
#define HAVE_WCSSTR 1
|
|
||||||
#define HAVE_WCSCMP 1
|
|
||||||
#define HAVE_WCSNCMP 1
|
|
||||||
#define HAVE_STRCMP 1
|
#define HAVE_STRCMP 1
|
||||||
#define HAVE_STRNCMP 1
|
#define HAVE_STRNCMP 1
|
||||||
#define HAVE_STRICMP 1
|
#define HAVE_STRICMP 1
|
||||||
|
|
|
@ -133,6 +133,7 @@ typedef unsigned int uintptr_t;
|
||||||
#define HAVE__STRNICMP 1
|
#define HAVE__STRNICMP 1
|
||||||
#define HAVE__WCSICMP 1
|
#define HAVE__WCSICMP 1
|
||||||
#define HAVE__WCSNICMP 1
|
#define HAVE__WCSNICMP 1
|
||||||
|
#define HAVE__WCSDUP 1
|
||||||
#define HAVE_ACOS 1
|
#define HAVE_ACOS 1
|
||||||
#define HAVE_ACOSF 1
|
#define HAVE_ACOSF 1
|
||||||
#define HAVE_ASIN 1
|
#define HAVE_ASIN 1
|
||||||
|
|
|
@ -33,6 +33,10 @@
|
||||||
|
|
||||||
#ifdef SDL_JOYSTICK_HIDAPI
|
#ifdef SDL_JOYSTICK_HIDAPI
|
||||||
|
|
||||||
|
#if defined(HAVE__WCSDUP) && !defined(HAVE_WCSDUP)
|
||||||
|
#define wcsdup _wcsdup
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <libusb.h>
|
#include <libusb.h>
|
||||||
#include <locale.h> /* setlocale */
|
#include <locale.h> /* setlocale */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue