summary refs log tree commit diff
path: root/pkgs/applications/graphics/giv/union.patch
blob: f12fce03613580c6bdfd8bbc5ed8bfe059d00ea1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Already reported uptream

diff --git a/src/giv-data.h b/src/giv-data.h
index 64e7696..d34bfe4 100644
--- a/src/giv-data.h
+++ b/src/giv-data.h
@@ -88,7 +88,7 @@ typedef struct
 typedef struct
 {
   gint op;
-  union
+  struct
   {
     struct
     {
diff --git a/src/giv_types.h b/src/giv_types.h
index 02abebe..c3cfb78 100644
--- a/src/giv_types.h
+++ b/src/giv_types.h
@@ -11,13 +11,11 @@ typedef struct {
 
 typedef struct {
   gint op;
-  union {
-    struct {
-      gdouble x,y;
-    } point;
-    double arc_dev;
-    text_mark_t *text_object;
-  } data;
+  struct {
+    gdouble x,y;
+  } point;
+  double arc_dev;
+  text_mark_t *text_object;
 } point_t;
 
 typedef struct {