public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: ppc: drop obsolete USE_WIN32API check
@ 2022-11-09 17:13 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2022-11-09 17:13 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=31b40f11f1cf7c79eff80bed214d3350a9a209a4

commit 31b40f11f1cf7c79eff80bed214d3350a9a209a4
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Thu Nov 10 00:11:17 2022 +0700

    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.

Diff:
---
 sim/ppc/config.in    |  5 -----
 sim/ppc/configure    |  8 --------
 sim/ppc/configure.ac | 10 ----------
 sim/ppc/emul_unix.c  |  4 ----
 4 files changed, 27 deletions(-)

diff --git a/sim/ppc/config.in b/sim/ppc/config.in
index 442835a9a76..4f28271351a 100644
--- a/sim/ppc/config.in
+++ b/sim/ppc/config.in
@@ -56,8 +56,3 @@
 
 /* Define to 1 if you have the ANSI C header files. */
 #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
diff --git a/sim/ppc/configure b/sim/ppc/configure
index df95a6febf6..39a7ac934ce 100755
--- a/sim/ppc/configure
+++ b/sim/ppc/configure
@@ -3543,14 +3543,6 @@ else
 fi
 
 
-case ${host} in
-  *mingw32*)
-
-$as_echo "#define USE_WIN32API 1" >>confdefs.h
-
-    ;;
-esac
-
 ac_config_headers="$ac_config_headers config.h:config.in"
 
 
diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac
index 542e8a105fb..cd9edd0de4c 100644
--- a/sim/ppc/configure.ac
+++ b/sim/ppc/configure.ac
@@ -381,16 +381,6 @@ if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
 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)
 
 
diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c
index 57691d4befc..1d8b7814ffc 100644
--- a/sim/ppc/emul_unix.c
+++ b/sim/ppc/emul_unix.c
@@ -760,11 +760,7 @@ do_unix_mkdir(os_emul_data *emul,
   if (WITH_TRACE && ppc_trace[trace_os_emul])
     printf_filtered ("0x%lx [%s], 0%3o", (long)path_addr, path, mode);
 
-#ifdef USE_WIN32API
-  status = mkdir(path);
-#else
   status = mkdir(path, mode);
-#endif
   emul_write_status(processor, status, errno);
 }
 #endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-09 17:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-09 17:13 [binutils-gdb] sim: ppc: drop obsolete USE_WIN32API check Michael Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).