summaryrefslogtreecommitdiff
path: root/src/lib/efl_wl
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-27 11:31:22 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-11-27 11:33:53 -0600
commit49fefaf1bc370fd3c6f760c79231d65f6596e9c9 (patch)
tree1d378d18a0d63ae8ab9ad1a129363bf10d19004d /src/lib/efl_wl
parent68620de80138dbbe0eb53196921e6a5e99c278f0 (diff)
efl_wl: Silence ridiculous warning
Including wayland client code before wayland server code causes spurious "struct wl_buffer deprecated" nonsense. Recent ecore_wl2 changes brought wayland client code into Ecore_Wl2.h which caused the warning to trigger here. Simply re-ordering the include files should resolve with no functional change.
Diffstat (limited to 'src/lib/efl_wl')
-rw-r--r--src/lib/efl_wl/efl_wl.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index 7f27abbd4f..4a71abc26e 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -14,15 +14,22 @@
14#include <fcntl.h> 14#include <fcntl.h>
15#include <dlfcn.h> 15#include <dlfcn.h>
16 16
17#include "Ecore_Evas.h"
18#include "Ecore_Wl2.h"
19#include "Ecore_Input.h"
20#include "Evas_GL.h"
21
22/* We have to include the wayland server stuff after any wayland client stuff
23 * like Ecore_Wl2.h or we'll get complaints about struct wl_buffer being
24 * deprecated.
25 * That's because its deprecated in server code - it's still the name of
26 * the opaque struct client side.
27 */
17#include <wayland-server.h> 28#include <wayland-server.h>
18#include "xdg-shell-unstable-v6-server-protocol.h" 29#include "xdg-shell-unstable-v6-server-protocol.h"
19#include "efl-hints-server-protocol.h" 30#include "efl-hints-server-protocol.h"
20#include "dmabuf.h" 31#include "dmabuf.h"
21 32
22#include "Ecore_Evas.h"
23#include "Ecore_Wl2.h"
24#include "Ecore_Input.h"
25#include "Evas_GL.h"
26# ifdef HAVE_ECORE_X 33# ifdef HAVE_ECORE_X
27#include "Ecore_X.h" 34#include "Ecore_X.h"
28#endif 35#endif