Patchwork util.h: declare dirstateTupleType variable instead of defining it

login
register
mail settings
Submitter André Sintzoff
Date July 3, 2014, 5:06 p.m.
Message ID <0022ee690446dcf42075.1404407213@amical.local>
Download mbox | patch
Permalink /patch/5096/
State Accepted
Commit 0022ee690446dcf42075780ff9022d8f7d8e69f0
Headers show

Comments

André Sintzoff - July 3, 2014, 5:06 p.m.
# HG changeset patch
# User André Sintzoff <andre.sintzoff@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

Patch

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)