summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-08-03 11:30:58 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-08-03 11:37:39 +0200
commit66b4ff408e70b548aad1234ef400505799be7bc2 (patch)
treeeb5fc53dab8b447fc9c8b441498e209db5a9fadb
parent180abefc0c2cd8e094a508589493bc5883589518 (diff)
e_alert: define EFL_BETA_API_SUPPORT before any include
otherwise we can include half efl without api and the other parts with beta api support, which leads to problems. The current problem was that Eo.h was first included without the EFL_BETA_API_SUPPORT, in Evas.h EFL_BETA_API_SUPPORT is defined, so the header expects Eo_Callback_Priority to be defined. @fix
-rw-r--r--src/bin/e_alert_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/e_alert_main.c b/src/bin/e_alert_main.c
index b2bcd3c54..c0cb3c6d7 100644
--- a/src/bin/e_alert_main.c
+++ b/src/bin/e_alert_main.c
@@ -1,5 +1,9 @@
1#include "config.h" 1#include "config.h"
2 2
3#ifdef HAVE_DRM2
4# define EFL_BETA_API_SUPPORT
5#endif
6
3#include <stdio.h> 7#include <stdio.h>
4#include <stdlib.h> 8#include <stdlib.h>
5#include <stdarg.h> 9#include <stdarg.h>
@@ -19,7 +23,6 @@
19# ifdef HAVE_WL_DRM 23# ifdef HAVE_WL_DRM
20# include <Ecore_Input.h> 24# include <Ecore_Input.h>
21# ifdef HAVE_DRM2 25# ifdef HAVE_DRM2
22# define EFL_BETA_API_SUPPORT
23# include <drm_fourcc.h> 26# include <drm_fourcc.h>
24# include <Ecore_Drm2.h> 27# include <Ecore_Drm2.h>
25# else 28# else