From 883550481f885ab2865ab71819167230d21d4c14 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 11 May 2005 00:58:16 +0200 Subject: Mark the variable declarations in .h files as extern This allows git to be built even with linkers which are not smart enough to join those symbols, and makes this correct C. Pointed out by several people. --- object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'object.h') diff --git a/object.h b/object.h index d53a35a4d7..09700d3760 100644 --- a/object.h +++ b/object.h @@ -15,8 +15,8 @@ struct object { struct object_list *refs; }; -int nr_objs; -struct object **objs; +extern int nr_objs; +extern struct object **objs; struct object *lookup_object(unsigned char *sha1); -- cgit 1.2.3-korg