comparison mercurial/util.h @ 21838:0022ee690446

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
author André Sintzoff <andre.sintzoff@gmail.com>
date Thu, 03 Jul 2014 19:05:04 +0200
parents e250b8300e6e
children e2bf959a5a0d
comparison
equal deleted inserted replaced
21837:61b333b982ea 21838:0022ee690446
157 int mode; 157 int mode;
158 int size; 158 int size;
159 int mtime; 159 int mtime;
160 } dirstateTupleObject; 160 } dirstateTupleObject;
161 161
162 PyTypeObject dirstateTupleType; 162 extern PyTypeObject dirstateTupleType;
163 #define dirstate_tuple_check(op) (Py_TYPE(op) == &dirstateTupleType) 163 #define dirstate_tuple_check(op) (Py_TYPE(op) == &dirstateTupleType)
164 164
165 static inline uint32_t getbe32(const char *c) 165 static inline uint32_t getbe32(const char *c)
166 { 166 {
167 const unsigned char *d = (const unsigned char *)c; 167 const unsigned char *d = (const unsigned char *)c;