You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2012/03/31 11:11:18 UTC
svn commit: r1307745 - in /subversion/trunk/subversion/libsvn_subr: crypto.c
crypto.h
Author: rhuijben
Date: Sat Mar 31 09:11:18 2012
New Revision: 1307745
URL: http://svn.apache.org/viewvc?rev=1307745&view=rev
Log:
* subversion/libsvn_subr/crypto.c
* subversion/libsvn_subr/crypto.h
APU_HAVE_CRYPTO is defined to be 0 when unavailable in apr 1.4.0-1.4.2,
so use #if instead of #ifdef. Also include apu.h before checking the
value of APU_HAVE_CRYPTO, as it won't be defined the other way.
Modified:
subversion/trunk/subversion/libsvn_subr/crypto.c
subversion/trunk/subversion/libsvn_subr/crypto.h
Modified: subversion/trunk/subversion/libsvn_subr/crypto.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/crypto.c?rev=1307745&r1=1307744&r2=1307745&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/crypto.c (original)
+++ subversion/trunk/subversion/libsvn_subr/crypto.c Sat Mar 31 09:11:18 2012
@@ -21,10 +21,8 @@
* ====================================================================
*/
-#ifdef APU_HAVE_CRYPTO
-
#include "crypto.h"
-
+#if APU_HAVE_CRYPTO
#include <apr_random.h>
Modified: subversion/trunk/subversion/libsvn_subr/crypto.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/crypto.h?rev=1307745&r1=1307744&r2=1307745&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/crypto.h (original)
+++ subversion/trunk/subversion/libsvn_subr/crypto.h Sat Mar 31 09:11:18 2012
@@ -26,7 +26,7 @@
#include <apu.h> /* for APU_HAVE_CRYPTO */
-#ifdef APU_HAVE_CRYPTO
+#if APU_HAVE_CRYPTO
#include <apr_crypto.h>