summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <johannes.sixt@telecom.at>2008-05-09 10:05:27 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-05-11 10:04:46 -0700
commit32efcd91c6505ae28f87c0e9a3e2b3c0115017d8 (patch)
tree0a4ec2acdc0391d32b324696e812a16dcece6fbf
parentbuiltin-commit.c: add -u as short name for --untracked-files (diff)
downloadtgif-32efcd91c6505ae28f87c0e9a3e2b3c0115017d8.tar.xz
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>
-rw-r--r--wt-status.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wt-status.h b/wt-status.h
index 02afaa60ee..7d61410b17 100644
--- 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);