chiark / gitweb /
disobedience/disobedience.h: Declare variables as `extern'.
authorColin Watson <cjwatson@debian.org>
Sat, 14 Aug 2021 15:52:11 +0000 (16:52 +0100)
committerColin 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

index 94e302287fae209ba7a5f4d99c38cb433e95715b..454a65fda0c684fb8541e675fd176033522dacee 100644 (file)
@@ -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);