From 2b1c1b2d66945c5cb237a7264759b6dbdf42b02a Mon Sep 17 00:00:00 2001 From: Yong Bakos Date: Mon, 18 Jul 2016 12:42:25 -0500 Subject: [PATCH] (multiple): Include stdint.h Some headers and source files have been using types such as uint32_t without explicitly including stdint.h. Explicitly include stdint.h where appropriate. Signed-off-by: Yong Bakos Reviewed-by: Eric Engestrom --- cursor/cursor-data.h | 2 ++ cursor/wayland-cursor.c | 1 + src/event-loop.c | 1 + src/scanner.c | 1 + src/wayland-client-core.h | 1 + src/wayland-private.h | 1 + src/wayland-server.h | 1 + src/wayland-shm.c | 1 + tests/connection-test.c | 1 + tests/display-test.c | 1 + tests/event-loop-test.c | 1 + tests/map-test.c | 1 + tests/os-wrappers-test.c | 1 + tests/queue-test.c | 1 + tests/resources-test.c | 1 + tests/test-compositor.c | 1 + tests/test-compositor.h | 1 + 17 files changed, 18 insertions(+) diff --git a/cursor/cursor-data.h b/cursor/cursor-data.h index 0d03cd53..dd7a80af 100644 --- a/cursor/cursor-data.h +++ b/cursor/cursor-data.h @@ -25,6 +25,8 @@ * Author: Keith Packard, SuSE, Inc. */ +#include + static uint32_t cursor_data[] = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, diff --git a/cursor/wayland-cursor.c b/cursor/wayland-cursor.c index 18abe87a..d40c5c8e 100644 --- a/cursor/wayland-cursor.c +++ b/cursor/wayland-cursor.c @@ -29,6 +29,7 @@ #include "wayland-client.h" #include #include +#include #include #include #include diff --git a/src/event-loop.c b/src/event-loop.c index 32216a7c..6130d2af 100644 --- a/src/event-loop.c +++ b/src/event-loop.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include diff --git a/src/scanner.c b/src/scanner.c index ebae4ccc..d501ba75 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include diff --git a/src/wayland-client-core.h b/src/wayland-client-core.h index dfd3e18f..03e781b5 100644 --- a/src/wayland-client-core.h +++ b/src/wayland-client-core.h @@ -26,6 +26,7 @@ #ifndef WAYLAND_CLIENT_CORE_H #define WAYLAND_CLIENT_CORE_H +#include #include "wayland-util.h" #include "wayland-version.h" diff --git a/src/wayland-private.h b/src/wayland-private.h index 045109b0..adfbe016 100644 --- a/src/wayland-private.h +++ b/src/wayland-private.h @@ -30,6 +30,7 @@ #include #include +#include #define WL_HIDE_DEPRECATED 1 diff --git a/src/wayland-server.h b/src/wayland-server.h index a6e7951a..f11fb4d0 100644 --- a/src/wayland-server.h +++ b/src/wayland-server.h @@ -36,6 +36,7 @@ #ifndef WAYLAND_SERVER_H #define WAYLAND_SERVER_H +#include #include "wayland-server-core.h" #ifdef __cplusplus diff --git a/src/wayland-shm.c b/src/wayland-shm.c index 20bb8c82..7fea364c 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include diff --git a/tests/connection-test.c b/tests/connection-test.c index 5d97fd98..3e34f779 100644 --- a/tests/connection-test.c +++ b/tests/connection-test.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include diff --git a/tests/display-test.c b/tests/display-test.c index 17956db8..f4800ce9 100644 --- a/tests/display-test.c +++ b/tests/display-test.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include diff --git a/tests/event-loop-test.c b/tests/event-loop-test.c index ae5ff945..33566b41 100644 --- a/tests/event-loop-test.c +++ b/tests/event-loop-test.c @@ -25,6 +25,7 @@ */ #include +#include #include #include #include diff --git a/tests/map-test.c b/tests/map-test.c index d2590488..8ecc1aa5 100644 --- a/tests/map-test.c +++ b/tests/map-test.c @@ -25,6 +25,7 @@ #include #include +#include #include #include "wayland-private.h" #include "test-runner.h" diff --git a/tests/os-wrappers-test.c b/tests/os-wrappers-test.c index b636b622..102622c3 100644 --- a/tests/os-wrappers-test.c +++ b/tests/os-wrappers-test.c @@ -27,6 +27,7 @@ #define _GNU_SOURCE #include +#include #include #include #include diff --git a/tests/queue-test.c b/tests/queue-test.c index 932bc555..86a36025 100644 --- a/tests/queue-test.c +++ b/tests/queue-test.c @@ -24,6 +24,7 @@ */ #include +#include #include #include #include diff --git a/tests/resources-test.c b/tests/resources-test.c index 337f9f9f..59d8beb7 100644 --- a/tests/resources-test.c +++ b/tests/resources-test.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "wayland-server.h" #include "test-runner.h" diff --git a/tests/test-compositor.c b/tests/test-compositor.c index b01e8afe..0631f614 100644 --- a/tests/test-compositor.c +++ b/tests/test-compositor.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include diff --git a/tests/test-compositor.h b/tests/test-compositor.h index 526e9123..876d0c09 100644 --- a/tests/test-compositor.h +++ b/tests/test-compositor.h @@ -23,6 +23,7 @@ * SOFTWARE. */ +#include #include #include "wayland-server.h"