Author: rinrab
Date: Sat Jul 20 12:38:07 2024
New Revision: 1919393

URL: http://svn.apache.org/viewvc?rev=1919393&view=rev
Log:
On the 'cmake' branch: Correctly setup preprocessor definition for local
path separator.

Since CMake support Windows and Unix systems, the path separator could be
in the both styles (backward or forward slash). On Windows, if WIN32 is
defined, it suppose to be backward slash, while everywhen else it is forward
slash.

* subversion/svn_private_config.hc
  (SVN_PATH_LOCAL_SEPARATOR): Check if WIN32 is defined and setup path
   separator based on it.

Modified:
    subversion/branches/cmake/subversion/svn_private_config.hc

Modified: subversion/branches/cmake/subversion/svn_private_config.hc
URL: 
http://svn.apache.org/viewvc/subversion/branches/cmake/subversion/svn_private_config.hc?rev=1919393&r1=1919392&r2=1919393&view=diff
==============================================================================
--- subversion/branches/cmake/subversion/svn_private_config.hc (original)
+++ subversion/branches/cmake/subversion/svn_private_config.hc Sat Jul 20 
12:38:07 2024
@@ -39,7 +39,11 @@
 #define SVN_FS_WANT_DB_PATCH    14
 
 /* Path separator for local filesystem */
+#ifdef WIN32
 #define SVN_PATH_LOCAL_SEPARATOR '\\'
+#else
+#define SVN_PATH_LOCAL_SEPARATOR '/'
+#endif
 
 /* Name of system's null device */
 #define SVN_NULL_DEVICE_NAME "nul"


Reply via email to