subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcor...@apache.org
Subject svn commit: r1228957 - /subversion/trunk/subversion/libsvn_subr/debug.c
Date Sun, 08 Jan 2012 21:16:09 GMT
Author: jcorvel
Date: Sun Jan  8 21:16:08 2012
New Revision: 1228957

URL: http://svn.apache.org/viewvc?rev=1228957&view=rev
Log:
Fix the release build on Windows, by making sure svn_dbg__preamble,
svn_dbg__printf and svn_dbg__print_props are always defined, whether or not
SVN_DEBUG is defined.

* subversion/libsvn_subr/debug.c
  (svn_dbg__print_props): Move the SVN_DEBUG #ifdef guard to inside this
   function, where it's really needed (because of usage of SVN_DBG),
   instead of #ifdef'ing around the entire file.

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

Modified: subversion/trunk/subversion/libsvn_subr/debug.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/debug.c?rev=1228957&r1=1228956&r2=1228957&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/debug.c (original)
+++ subversion/trunk/subversion/libsvn_subr/debug.c Sun Jan  8 21:16:08 2012
@@ -29,9 +29,6 @@
 #include "svn_types.h"
 #include "svn_string.h"
 
-/* We only build this code if SVN_DEBUG is defined. */
-#ifdef SVN_DEBUG
-
 #include "private/svn_debug.h"
 
 
@@ -98,6 +95,9 @@ svn_dbg__print_props(apr_hash_t *props,
                      const char *header_fmt,
                      ...)
 {
+/* We only build this code if SVN_DEBUG is defined. */
+#ifdef SVN_DEBUG
+
   apr_hash_index_t *hi;
   va_list ap;
 
@@ -113,6 +113,6 @@ svn_dbg__print_props(apr_hash_t *props,
 
       SVN_DBG(("    '%s' -> '%s'\n", name, val->data));
     }
+#endif /* SVN_DEBUG */
 }
 
-#endif



Mime
View raw message