1 [PATCH] fix mbtheme build issue when png support is disabled
3 DEFAULTTHEME{,NAME} is not defined when png support is disabled, leading
4 to compile errors in mbtheme.c:
6 mbtheme.c: In function 'show_parse_error':
7 mbtheme.c:2422:28: error: 'DEFAULTTHEME' undeclared (first use in this function)
8 mbtheme.c:2422:28: note: each undeclared identifier is reported only once for each function it appears in
9 mbtheme.c: In function 'mbtheme_init':
10 mbtheme.c:2448:30: error: 'DEFAULTTHEME' undeclared (first use in this function)
11 mbtheme.c:2470:25: error: 'DEFAULTTHEMENAME' undeclared (first use in this function)
13 Fix it by unconditionally defining them as the values used are the same
14 in png / !png cases anyway.
16 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
18 src/structs.h | 9 ---------
19 1 file changed, 9 deletions(-)
21 Index: matchbox-window-manager-1.2/src/structs.h
22 ===================================================================
23 --- matchbox-window-manager-1.2.orig/src/structs.h
24 +++ matchbox-window-manager-1.2/src/structs.h
27 #define GENERIC_ICON PKGDATADIR "/mbnoapp.xpm"
31 #define DEFAULT_THEME DATADIR "/themes/Default/matchbox/theme.xml"
33 #define DEFAULTTHEME DATADIR "/themes/Default/matchbox/theme.xml"
36 #define DEFAULTTHEMENAME "Default"
40 -#define DEFAULT_THEME DATADIR "/themes/Default/matchbox/theme.xml"
41 -#define DEFAULT_THEME_NAME "Default"
45 #define CONFDEFAULTS PKGDATADIR "/defaults"