]> gcc.gnu.org Git - gcc.git/commitdiff
ada: Fix standalone Windows builds of adaint.c
authorSebastian Poeplau <poeplau@adacore.com>
Mon, 26 Feb 2024 10:03:03 +0000 (11:03 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 16 May 2024 08:49:32 +0000 (10:49 +0200)
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.

gcc/ada/adaint.c

index 74aa3c4128e93c7398f3c0eeb91dd2120f3d2200..f26d69a1a2a0fbb29c9323b3cc202a429e418b59 100644 (file)
@@ -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>
This page took 0.072774 seconds and 5 git commands to generate.