Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
wt-status.h: declare global variables as extern
author
Johannes Sixt
<johannes.sixt@telecom.at>
Fri, 9 May 2008 08:05:27 +0000
(10:05 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 11 May 2008 17:04:46 +0000
(10:04 -0700)
There are linkers out there that complain if a global non-static variable
is defined multiple times.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.h
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
e164590
)
diff --git
a/wt-status.h
b/wt-status.h
index 02afaa60eee74018e074a4dcb3bec97c2e0ce9dc..7d61410b1733825e3bb8042781a75de3ee62c41d 100644
(file)
--- a/
wt-status.h
+++ b/
wt-status.h
@@
-28,8
+28,8
@@
struct wt_status {
};
int git_status_config(const char *var, const char *value);
-int wt_status_use_color;
-int wt_status_relative_paths;
+
extern
int wt_status_use_color;
+
extern
int wt_status_relative_paths;
void wt_status_prepare(struct wt_status *s);
void wt_status_print(struct wt_status *s);