Skip to content

Commit

Permalink
wt-status.h: declare global variables as extern
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Sixt authored and Junio C Hamano committed May 11, 2008
1 parent e164590 commit 32efcd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wt-status.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 32efcd9

Please sign in to comment.