blob: 1556c6be24ead0dc79be2a44de1db4a9b3f6bb4c [file] [log] [blame]
Fabrice Fontaine8414e312020-09-05 14:26:11 +02001From 844f61069896fe3f549ab425d731c061028f697c Mon Sep 17 00:00:00 2001
2From: Adrian Bunk <bunk@stusta.de>
3Date: Tue, 12 May 2020 09:44:05 +0300
4Subject: src: Fix build with gcc 10
5
6gcc 10 enables -fno-common by default which fails without these typedefs
7
8Signed-off-by: Adrian Bunk <bunk@stusta.de>
9Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10
11[Retrieved from:
12http://git.yoctoproject.org/cgit/cgit.cgi/matchbox-window-manager/commit/?id=844f61069896fe3f549ab425d731c061028f697c]
13Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
14---
15 src/mbtheme.h | 2 +-
16 src/structs.h | 2 +-
17 2 files changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/src/mbtheme.h b/src/mbtheme.h
20index aa9a7c5..ad03bde 100644
21--- a/src/mbtheme.h
22+++ b/src/mbtheme.h
23@@ -46,7 +46,7 @@ typedef struct _mb_theme_param
24
25 } MBThemeParam;
26
27-enum {
28+typedef enum {
29 LAYER_GRADIENT_HORIZ = 1,
30 LAYER_GRADIENT_VERT,
31 LAYER_LABEL,
32diff --git a/src/structs.h b/src/structs.h
33index 24985e7..8f53e72 100644
34--- a/src/structs.h
35+++ b/src/structs.h
36@@ -148,7 +148,7 @@
37
38 /* Atoms, if you change these check ewmh_init() first */
39
40-enum {
41+typedef enum {
42 WM_STATE = 0,
43 WM_CHANGE_STATE,
44 WM_PROTOCOLS,
45--
46cgit v1.2.2-1-g5e49
47