WindowSystem : Added ARRAY_LENGTH for wayland version 1.0.0
authorNobuhiko Tanibata <ntanibata@jp.adit-jv.com>
Wed, 21 Nov 2012 14:06:49 +0000 (23:06 +0900)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Thu, 22 Nov 2012 10:03:26 +0000 (02:03 -0800)
Signed-off-by: Nobuhiko Tanibata <ntanibata@jp.adit-jv.com>
LayerManagerPlugins/Renderers/Graphic/include/WindowSystems/WaylandServerinfoServerProtocol.h
LayerManagerPlugins/Renderers/Graphic/src/WindowSystems/WaylandServerinfoProtocol.cpp
LayerManagerPlugins/Renderers/Graphic/src/WindowSystems/WaylandX11InputEvent.cpp

index 86f4aaf..e71cf87 100644 (file)
@@ -30,6 +30,7 @@
 #include <stdint.h>
 #include "wayland-util.h"
 
+#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
 
 static const struct wl_interface *types[] = {
        NULL,
index ff7237a..5de07e3 100644 (file)
@@ -37,6 +37,8 @@
 #include "WindowSystems/WaylandX11InputEvent.h"
 #include "WindowSystems/WaylandX11WindowSystem.h"
 
+#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
+
 extern "C"
 {
     static int