Author: cazfi
Date: Thu Jun 23 21:52:34 2016
New Revision: 32985

URL: http://svn.gna.org/viewcvs/freeciv?rev=32985&view=rev
Log:
Crosser based builds consistently use '/' as dir separator.

See bug #24781

Modified:
    branches/S2_6/configure.ac
    branches/S2_6/utility/shared.h

Modified: branches/S2_6/configure.ac
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/configure.ac?rev=32985&r1=32984&r2=32985&view=diff
==============================================================================
--- branches/S2_6/configure.ac  (original)
+++ branches/S2_6/configure.ac  Thu Jun 23 21:52:34 2016
@@ -804,7 +804,8 @@
 AC_ARG_ENABLE([crosser],
   AS_HELP_STRING([--enable-crosser], [build version to be used with crosser 
environment]),
 [case "${enableval}" in
-  yes) crosser=yes 
+  yes) crosser=yes
+       HOST_DIR_SEPARATOR="/"
        AC_DEFINE([CROSSER], [1], [this is crosser based build]) ;;
   no)  crosser=no ;;
   *)   AC_MSG_ERROR([bad value ${enableval} for --enable-crosser]) ;;

Modified: branches/S2_6/utility/shared.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/utility/shared.h?rev=32985&r1=32984&r2=32985&view=diff
==============================================================================
--- branches/S2_6/utility/shared.h      (original)
+++ branches/S2_6/utility/shared.h      Thu Jun 23 21:52:34 2016
@@ -119,7 +119,12 @@
 #endif /* PATH_SEPARATOR */
 
 #ifndef DIR_SEPARATOR
-#if defined(FREECIV_MSWINDOWS) || defined(_WIN32) || defined(__WIN32__) || 
defined(__EMX__) || defined(__DJGPP__)
+#if defined(CROSSER)
+  /* crosser based build */
+# define DIR_SEPARATOR_IS_DEFAULT
+# define DIR_SEPARATOR "/"
+# define DIR_SEPARATOR_CHAR '/'
+#elif defined(FREECIV_MSWINDOWS) || defined(_WIN32) || defined(__WIN32__) || 
defined(__EMX__) || defined(__DJGPP__)
   /* Win32, OS/2, DOS */
 # define DIR_SEPARATOR "\\"
 # define DIR_SEPARATOR_CHAR '\\'


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to