summaryrefslogtreecommitdiff
path: root/src/event-loop.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-10-19 17:08:38 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-10-19 17:08:38 -0400
commitbdd272f024744b4ed5ba6daedef7eb023bcac7cb (patch)
tree61725e939ace9d69f52ddb6cc0f610e525a878b9 /src/event-loop.c
parent56061674cd80e701174c1f1b1bf575aa308ecbd8 (diff)
Move ARRAY_LENGTH out of public headers
Exporting unprefixed symbols is a pretty bad idea so don't do that. Instea of redefining it WL_ARRAY_LENGTH, we just move the define to our private header. The scanner generates code that uses ARRAY_LENGTH, but we can just make it count the number elements and emit an integer constant instead.
Diffstat (limited to 'src/event-loop.c')
-rw-r--r--src/event-loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/event-loop.c b/src/event-loop.c
index e383300..8db9c7c 100644
--- a/src/event-loop.c
+++ b/src/event-loop.c
@@ -35,6 +35,7 @@
#include <unistd.h>
#include <assert.h>
#include "wayland-server.h"
+#include "wayland-private.h"
#include "wayland-os.h"
struct wl_event_loop {