You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2012/10/10 14:39:32 UTC

svn commit: r1396564 - /subversion/trunk/subversion/libsvn_subr/path.c

Author: hwright
Date: Wed Oct 10 12:39:31 2012
New Revision: 1396564

URL: http://svn.apache.org/viewvc?rev=1396564&view=rev
Log:
Only define a private function on platforms where we actually use it.
All the other callers are protected by similar define guards.

* subversion/libsvn_subr/path.c
  (get_path_encoding): Only define on !WIN32 && !DARWIN.

Modified:
    subversion/trunk/subversion/libsvn_subr/path.c

Modified: subversion/trunk/subversion/libsvn_subr/path.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/path.c?rev=1396564&r1=1396563&r2=1396564&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/path.c (original)
+++ subversion/trunk/subversion/libsvn_subr/path.c Wed Oct 10 12:39:31 2012
@@ -1100,7 +1100,7 @@ svn_path_get_absolute(const char **pabso
 }
 
 
-
+#if !defined(WIN32) && !defined(DARWIN)
 /** Get APR's internal path encoding. */
 static svn_error_t *
 get_path_encoding(svn_boolean_t *path_is_utf8, apr_pool_t *pool)
@@ -1119,6 +1119,7 @@ get_path_encoding(svn_boolean_t *path_is
   *path_is_utf8 = (encoding_style == APR_FILEPATH_ENCODING_UTF8);
   return SVN_NO_ERROR;
 }
+#endif
 
 
 svn_error_t *