wt-status.h: declare global variables as extern
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>
Johannes Sixt committed
May 9, 2008 at 10:05 UTC
32efcd91c6505ae28f87c0e9a3e2b3c0115017d8
1 file changed
+2
-2
wt-status.h
+2
-2
@@ -28,8 +28,8 @@ struct wt_status {
28
};
29
30
int git_status_config(const char *var, const char *value);
31
-int wt_status_use_color;
32
-int wt_status_relative_paths;
31
+extern int wt_status_use_color;
32
+extern int wt_status_relative_paths;
33
void wt_status_prepare(struct wt_status *s);
34
void wt_status_print(struct wt_status *s);
35