util.h: declare dirstateTupleType variable instead of defining it
authorAndré Sintzoff <andre.sintzoff@gmail.com>
Thu, 03 Jul 2014 19:05:04 +0200
changeset 21838 0022ee690446
parent 21837 61b333b982ea
child 21841 521355a95636
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
mercurial/util.h
--- a/mercurial/util.h	Fri Jun 13 15:59:18 2014 -0700
+++ b/mercurial/util.h	Thu Jul 03 19:05:04 2014 +0200
@@ -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)