subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1182467 - /subversion/trunk/subversion/tests/libsvn_subr/cache-test.c
Date Wed, 12 Oct 2011 16:30:23 GMT
Author: stsp
Date: Wed Oct 12 16:30:22 2011
New Revision: 1182467

URL: http://svn.apache.org/viewvc?rev=1182467&view=rev
Log:
Follow-up to r1182459: Attempt to fix the Windows build.

* subversion/tests/libsvn_subr/cache-test.c
  (test_inprocess_cache_basic): Windows compilers don't seem to be happy
    with pre-processor directives inside of function parameter lists.
    So don't put them there.

Modified:
    subversion/trunk/subversion/tests/libsvn_subr/cache-test.c

Modified: subversion/trunk/subversion/tests/libsvn_subr/cache-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/cache-test.c?rev=1182467&r1=1182466&r2=1182467&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/cache-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/cache-test.c Wed Oct 12 16:30:22 2011
@@ -127,6 +127,13 @@ static svn_error_t *
 test_inprocess_cache_basic(apr_pool_t *pool)
 {
   svn_cache__t *cache;
+  svn_boolean_t thread_safe;
+
+#if APR_HAS_THREADS
+  thread_safe = TRUE;
+#else
+  thread_safe = FALSE;
+#endif
 
   /* Create a cache with just one entry. */
   SVN_ERR(svn_cache__create_inprocess(&cache,
@@ -135,11 +142,7 @@ test_inprocess_cache_basic(apr_pool_t *p
                                       APR_HASH_KEY_STRING,
                                       1,
                                       1,
-#if APR_HAS_THREADS
-                                      TRUE,
-#else
-                                      FALSE,
-#endif
+                                      thread_safe,
                                       "",
                                       pool));
 



Mime
View raw message