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
This commit is contained in:
Marcel Hollerbach 2016-08-03 11:30:58 +02:00
parent 180abefc0c
commit 66b4ff408e
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,9 @@
#include "config.h" #include "config.h"
#ifdef HAVE_DRM2
# define EFL_BETA_API_SUPPORT
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
@ -19,7 +23,6 @@
# ifdef HAVE_WL_DRM # ifdef HAVE_WL_DRM
# include <Ecore_Input.h> # include <Ecore_Input.h>
# ifdef HAVE_DRM2 # ifdef HAVE_DRM2
# define EFL_BETA_API_SUPPORT
# include <drm_fourcc.h> # include <drm_fourcc.h>
# include <Ecore_Drm2.h> # include <Ecore_Drm2.h>
# else # else