← Back to team overview

subvertpy-users team mailing list archive

[PATCH 4 of 4] util: fix compilation against Subversion 1.4

 

# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr@xxxxxxxxx>
# Date 1279991058 -7200
# Node ID bdd1a0f748223a3315d54ce7817e56339c8b39cc
# Parent  14c2e61bc98f1654c242a24f05fa2d5fb68273af
util: fix compilation against Subversion 1.4.

svn_depth_t should declared as a type, not only as an enum.

diff --git a/subvertpy/util.h b/subvertpy/util.h
--- a/subvertpy/util.h
+++ b/subvertpy/util.h
@@ -88,14 +88,14 @@ svn_error_t *py_svn_log_entry_receiver(v
 	}
 
 #if SVN_VER_MAJOR <= 1 && SVN_VER_MINOR < 5
-enum svn_depth_t {
+typedef enum svn_depth_t {
 	svn_depth_unknown = -2,
 	svn_depth_exclude = -1,
 	svn_depth_empty = 0,
 	svn_depth_files = 1,
 	svn_depth_immediates = 2,
 	svn_depth_infinity = 3
-};
+} svn_depth_t;
 #endif
 
 typedef struct {



References