Skip to content

Commit 32efcd9

Browse files
Johannes Sixtgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e164590 commit 32efcd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wt-status.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ struct wt_status {
2828
};
2929

3030
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;
3333
void wt_status_prepare(struct wt_status *s);
3434
void wt_status_print(struct wt_status *s);
3535

0 commit comments

Comments
 (0)