aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Poeplau <poeplau@adacore.com>2024-02-26 11:03:03 +0100
committerMarc Poulhiès <poulhies@adacore.com>2024-05-16 10:49:32 +0200
commitea648848eac40e07df0b0e1f5762b5d3f3f738c6 (patch)
tree8ef9efac26879e32518c7dbf91e3eb0b6ec45e44
parentc3b570b5d9354a2366c29c4eb8eaa41c1d087e41 (diff)
downloadgcc-ea648848eac40e07df0b0e1f5762b5d3f3f738c6.zip
gcc-ea648848eac40e07df0b0e1f5762b5d3f3f738c6.tar.gz
gcc-ea648848eac40e07df0b0e1f5762b5d3f3f738c6.tar.bz2
ada: Fix standalone Windows builds of adaint.c
Define PATH_SEPARATOR and HOST_EXECUTABLE_SUFFIX in standalone MinGW builds; the definitions normally come from GCC, and the defaults don't work for native Windows. gcc/ada/ * adaint.c: New defines for STANDALONE mode.
-rw-r--r--gcc/ada/adaint.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index 74aa3c4..f26d69a 100644
--- a/gcc/ada/adaint.c
+++ b/gcc/ada/adaint.c
@@ -242,6 +242,13 @@ UINT __gnat_current_ccs_encoding;
#undef DIR_SEPARATOR
#define DIR_SEPARATOR '\\'
+#ifdef STANDALONE
+#undef PATH_SEPARATOR
+#define PATH_SEPARATOR ';'
+#undef HOST_EXECUTABLE_SUFFIX
+#define HOST_EXECUTABLE_SUFFIX ".exe"
+#endif
+
#else
#include <signal.h>
#include <utime.h>