Author: cazfi
Date: Thu Jun 23 21:52:29 2016
New Revision: 32984

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

See bug #24781

Modified:
    trunk/configure.ac
    trunk/utility/shared.h

Modified: trunk/configure.ac
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/configure.ac?rev=32984&r1=32983&r2=32984&view=diff
==============================================================================
--- trunk/configure.ac  (original)
+++ trunk/configure.ac  Thu Jun 23 21:52:29 2016
@@ -855,7 +855,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: trunk/utility/shared.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/utility/shared.h?rev=32984&r1=32983&r2=32984&view=diff
==============================================================================
--- trunk/utility/shared.h      (original)
+++ trunk/utility/shared.h      Thu Jun 23 21:52:29 2016
@@ -118,7 +118,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