mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-03-27 20:49:07 +08:00
libbacktrace: call GetModuleFileNameA on Windows
Patch from Björn Schäpers. * fileline.c: Include <windows.h> if available. (windows_get_executable_path): New static function. (fileline_initialize): Call windows_get_executable_path. * configure.ac: Checked for windows.h * configure: Regenerate. * config.h.in: Regenerate.
This commit is contained in:
13
configure
vendored
13
configure
vendored
@@ -12440,6 +12440,19 @@ $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
for ac_header in windows.h
|
||||
do :
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_windows_h" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_WINDOWS_H 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
||||
# Check for the fcntl function.
|
||||
if test -n "${with_target_subdir}"; then
|
||||
case "${host}" in
|
||||
|
||||
Reference in New Issue
Block a user