bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=66b4ff408e70b548aad1234ef400505799be7bc2

commit 66b4ff408e70b548aad1234ef400505799be7bc2
Author: Marcel Hollerbach <[email protected]>
Date:   Wed Aug 3 11:30:58 2016 +0200

    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
---
 src/bin/e_alert_main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_alert_main.c b/src/bin/e_alert_main.c
index b2bcd3c..c0cb3c6 100644
--- a/src/bin/e_alert_main.c
+++ b/src/bin/e_alert_main.c
@@ -1,5 +1,9 @@
 #include "config.h"
 
+#ifdef HAVE_DRM2
+#  define EFL_BETA_API_SUPPORT
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
@@ -19,7 +23,6 @@
 # ifdef HAVE_WL_DRM
 #  include <Ecore_Input.h>
 #  ifdef HAVE_DRM2
-#   define EFL_BETA_API_SUPPORT
 #   include <drm_fourcc.h>
 #   include <Ecore_Drm2.h>
 #  else

-- 


Reply via email to