mirror of https://github.com/encounter/SDL.git
check for tpcshrd.h and define HAVE_TPCSHRD_H if it's available.
This commit is contained in:
parent
515b5f2a39
commit
75ac944b9c
|
@ -1581,6 +1581,7 @@ elseif(WINDOWS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# headers needed elsewhere
|
# headers needed elsewhere
|
||||||
|
check_include_file(tpcshrd.h HAVE_TPCSHRD_H)
|
||||||
check_include_file(mmdeviceapi.h HAVE_MMDEVICEAPI_H)
|
check_include_file(mmdeviceapi.h HAVE_MMDEVICEAPI_H)
|
||||||
check_include_file(audioclient.h HAVE_AUDIOCLIENT_H)
|
check_include_file(audioclient.h HAVE_AUDIOCLIENT_H)
|
||||||
check_include_file(sensorsapi.h HAVE_SENSORSAPI_H)
|
check_include_file(sensorsapi.h HAVE_SENSORSAPI_H)
|
||||||
|
|
|
@ -26134,6 +26134,17 @@ $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
|
||||||
have_haptic=yes
|
have_haptic=yes
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
|
||||||
|
have_tpcshrd_h=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test x$have_tpcshrd_h = xyes; then
|
||||||
|
|
||||||
|
$as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
|
||||||
|
|
||||||
|
fi
|
||||||
# Set up files for the sensor library
|
# Set up files for the sensor library
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
|
||||||
if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
|
if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
|
||||||
|
|
|
@ -3971,6 +3971,10 @@ case "$host" in
|
||||||
have_haptic=yes
|
have_haptic=yes
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
AC_CHECK_HEADER(tpcshrd.h,have_tpcshrd_h=yes)
|
||||||
|
if test x$have_tpcshrd_h = xyes; then
|
||||||
|
AC_DEFINE(HAVE_TPCSHRD_H, 1, [ ])
|
||||||
|
fi
|
||||||
# Set up files for the sensor library
|
# Set up files for the sensor library
|
||||||
AC_CHECK_HEADER(sensorsapi.h,have_winsensors=yes,have_winsensors=no)
|
AC_CHECK_HEADER(sensorsapi.h,have_winsensors=yes,have_winsensors=no)
|
||||||
if test x$have_winsensors = xyes; then
|
if test x$have_winsensors = xyes; then
|
||||||
|
|
|
@ -251,6 +251,7 @@
|
||||||
|
|
||||||
#cmakedefine HAVE_MMDEVICEAPI_H @HAVE_MMDEVICEAPI_H@
|
#cmakedefine HAVE_MMDEVICEAPI_H @HAVE_MMDEVICEAPI_H@
|
||||||
#cmakedefine HAVE_AUDIOCLIENT_H @HAVE_AUDIOCLIENT_H@
|
#cmakedefine HAVE_AUDIOCLIENT_H @HAVE_AUDIOCLIENT_H@
|
||||||
|
#cmakedefine HAVE_TPCSHRD_H @HAVE_TPCSHRD_H@
|
||||||
#cmakedefine HAVE_SENSORSAPI_H @HAVE_SENSORSAPI_H@
|
#cmakedefine HAVE_SENSORSAPI_H @HAVE_SENSORSAPI_H@
|
||||||
|
|
||||||
#cmakedefine HAVE_XINPUT_GAMEPAD_EX @HAVE_XINPUT_GAMEPAD_EX@
|
#cmakedefine HAVE_XINPUT_GAMEPAD_EX @HAVE_XINPUT_GAMEPAD_EX@
|
||||||
|
|
|
@ -240,6 +240,7 @@
|
||||||
|
|
||||||
#undef HAVE_MMDEVICEAPI_H
|
#undef HAVE_MMDEVICEAPI_H
|
||||||
#undef HAVE_AUDIOCLIENT_H
|
#undef HAVE_AUDIOCLIENT_H
|
||||||
|
#undef HAVE_TPCSHRD_H
|
||||||
#undef HAVE_SENSORSAPI_H
|
#undef HAVE_SENSORSAPI_H
|
||||||
|
|
||||||
/* SDL internal assertion support */
|
/* SDL internal assertion support */
|
||||||
|
|
|
@ -103,6 +103,7 @@ typedef unsigned int uintptr_t;
|
||||||
#endif
|
#endif
|
||||||
#define HAVE_MMDEVICEAPI_H 1
|
#define HAVE_MMDEVICEAPI_H 1
|
||||||
#define HAVE_AUDIOCLIENT_H 1
|
#define HAVE_AUDIOCLIENT_H 1
|
||||||
|
#define HAVE_TPCSHRD_H 1
|
||||||
#define HAVE_SENSORSAPI_H 1
|
#define HAVE_SENSORSAPI_H 1
|
||||||
#if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600)
|
#if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600)
|
||||||
#define HAVE_IMMINTRIN_H 1
|
#define HAVE_IMMINTRIN_H 1
|
||||||
|
|
|
@ -100,6 +100,7 @@ typedef unsigned int uintptr_t;
|
||||||
|
|
||||||
#define HAVE_MMDEVICEAPI_H 1
|
#define HAVE_MMDEVICEAPI_H 1
|
||||||
#define HAVE_AUDIOCLIENT_H 1
|
#define HAVE_AUDIOCLIENT_H 1
|
||||||
|
#define HAVE_TPCSHRD_H 1
|
||||||
|
|
||||||
#define HAVE_LIBC 1
|
#define HAVE_LIBC 1
|
||||||
#define STDC_HEADERS 1
|
#define STDC_HEADERS 1
|
||||||
|
|
Loading…
Reference in New Issue