ports/cad/geda/files/patch-gattrib_src_gtksheet__2__2.c
Alexey Dokuchaev e3df77b3ab cad/geda: make the port's code consumable by contemporary compilers
Ensure that there is only one variable definition per each object, as
the C (and C++) standards mandated for years and compilers started to
enforce as of recently (Clang 11, GCC 10).
2023-02-23 13:20:00 +00:00

19 lines
444 B
C

--- gattrib/src/gtksheet_2_2.c.orig 2013-09-25 20:59:27 UTC
+++ gattrib/src/gtksheet_2_2.c
@@ -57,6 +57,16 @@
#include "../include/prototype.h" /* function prototypes */
#include "../include/globals.h"
+TOPLEVEL *pr_current;
+SHEET_DATA *sheet_head;
+
+GtkWidget *window;
+GtkWidget *notebook;
+GtkSheet **sheets;
+GtkWidget **scrolled_windows;
+GtkWidget *entry;
+GtkWidget *label;
+
#ifdef HAVE_LIBDMALLOC
#include <dmalloc.h>
#endif