[PATCH] util.h: declare dirstateTupleType variable instead of defining it

André Sintzoff andre.sintzoff at gmail.com
Thu Jul 3 17:06:53 UTC 2014


# HG changeset patch
# User André Sintzoff <andre.sintzoff at gmail.com>
# Date 1404407104 -7200
#      Jeu jul 03 19:05:04 2014 +0200
# Node ID 0022ee690446dcf42075780ff9022d8f7d8e69f0
# Parent  61b333b982ea7baab198a188306fc05fb2850179
util.h: declare dirstateTupleType variable instead of defining it

The definition is already in parsers.c

This patch avoids, at least on Mac OS X 10.6.8, build issue since e250b8300e6e

diff --git a/mercurial/util.h b/mercurial/util.h
--- a/mercurial/util.h
+++ b/mercurial/util.h
@@ -159,7 +159,7 @@
 	int mtime;
 } dirstateTupleObject;
 
-PyTypeObject dirstateTupleType;
+extern PyTypeObject dirstateTupleType;
 #define dirstate_tuple_check(op) (Py_TYPE(op) == &dirstateTupleType)
 
 static inline uint32_t getbe32(const char *c)


More information about the Mercurial-devel mailing list