mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:32:56 +08:00
sim: ppc: drop obsolete USE_WIN32API check
This controls only one thing: how to call mkdir(). The gnulib code already has a mkdir module that provides this exact logic for us, so punt the code entirely.
This commit is contained in:
@ -56,8 +56,3 @@
|
|||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
#undef STDC_HEADERS
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
/* Define if we should use the Windows API, instead of the POSIX API. On
|
|
||||||
Windows, we use the Windows API when building for MinGW, but the POSIX API
|
|
||||||
when building for Cygwin. */
|
|
||||||
#undef USE_WIN32API
|
|
||||||
|
8
sim/ppc/configure
vendored
8
sim/ppc/configure
vendored
@ -3543,14 +3543,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
case ${host} in
|
|
||||||
*mingw32*)
|
|
||||||
|
|
||||||
$as_echo "#define USE_WIN32API 1" >>confdefs.h
|
|
||||||
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
ac_config_headers="$ac_config_headers config.h:config.in"
|
ac_config_headers="$ac_config_headers config.h:config.in"
|
||||||
|
|
||||||
|
|
||||||
|
@ -381,16 +381,6 @@ if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
|
|||||||
fi],[sim_xor_endian=""])dnl
|
fi],[sim_xor_endian=""])dnl
|
||||||
|
|
||||||
|
|
||||||
case ${host} in
|
|
||||||
*mingw32*)
|
|
||||||
AC_DEFINE(USE_WIN32API, 1,
|
|
||||||
[Define if we should use the Windows API, instead of the
|
|
||||||
POSIX API. On Windows, we use the Windows API when
|
|
||||||
building for MinGW, but the POSIX API when building
|
|
||||||
for Cygwin.])
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_CONFIG_HEADER(config.h:config.in)
|
AC_CONFIG_HEADER(config.h:config.in)
|
||||||
|
|
||||||
|
|
||||||
|
@ -760,11 +760,7 @@ do_unix_mkdir(os_emul_data *emul,
|
|||||||
if (WITH_TRACE && ppc_trace[trace_os_emul])
|
if (WITH_TRACE && ppc_trace[trace_os_emul])
|
||||||
printf_filtered ("0x%lx [%s], 0%3o", (long)path_addr, path, mode);
|
printf_filtered ("0x%lx [%s], 0%3o", (long)path_addr, path, mode);
|
||||||
|
|
||||||
#ifdef USE_WIN32API
|
|
||||||
status = mkdir(path);
|
|
||||||
#else
|
|
||||||
status = mkdir(path, mode);
|
status = mkdir(path, mode);
|
||||||
#endif
|
|
||||||
emul_write_status(processor, status, errno);
|
emul_write_status(processor, status, errno);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user