chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d9bb6be
)
disobedience/disobedience.h: Declare variables as `extern'.
author
Colin Watson
<cjwatson@debian.org>
Sat, 14 Aug 2021 15:52:11 +0000
(16:52 +0100)
committer
Colin Watson
<cjwatson@debian.org>
Sat, 14 Aug 2021 15:53:57 +0000
(16:53 +0100)
Otherwise we get a multiple-definition link failure with recent
toolchains (GCC 10 on Debian bullseye).
Fixes #60.
disobedience/disobedience.h
patch
|
blob
|
blame
|
history
diff --git
a/disobedience/disobedience.h
b/disobedience/disobedience.h
index 94e302287fae209ba7a5f4d99c38cb433e95715b..454a65fda0c684fb8541e675fd176033522dacee 100644
(file)
--- a/
disobedience/disobedience.h
+++ b/
disobedience/disobedience.h
@@
-167,7
+167,7
@@
void all_update(void);
GtkWidget *menubar(GtkWidget *w);
/* Create the menu bar */
-int full_mode;
+
extern
int full_mode;
void users_set_sensitive(int sensitive);
@@
-228,7
+228,7
@@
extern const GtkTargetEntry choose_targets[];
void login_box(void);
-GtkWidget *login_window;
+
extern
GtkWidget *login_window;
/* User management */
@@
-251,7
+251,7
@@
void stop_rtp(void);
void load_rtp_config(void);
void save_rtp_config(void);
void change_rtp_api(const char *api);
-const char *rtp_api;
+
extern
const char *rtp_api;
int rtp_setvol(int *l, int *r);
int rtp_getvol(int *l, int *r);