include stdint.h for int32_t/uint32_t
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
diff --git a/clients/editor.c b/clients/editor.c
index e081a5b..b34ef42 100644
--- a/clients/editor.c
+++ b/clients/editor.c
@@ -25,6 +25,7 @@
#include "config.h"
#include <assert.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/eventdemo.c b/clients/eventdemo.c
index f04e39b..d8eef5b 100644
--- a/clients/eventdemo.c
+++ b/clients/eventdemo.c
@@ -33,6 +33,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
diff --git a/clients/ivi-shell-user-interface.c b/clients/ivi-shell-user-interface.c
index 465def1..f4e061d 100644
--- a/clients/ivi-shell-user-interface.c
+++ b/clients/ivi-shell-user-interface.c
@@ -26,6 +26,7 @@
#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <linux/input.h>
diff --git a/clients/keyboard.c b/clients/keyboard.c
index bcb346a..9af3f41 100644
--- a/clients/keyboard.c
+++ b/clients/keyboard.c
@@ -25,6 +25,7 @@
#include "config.h"
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/multi-resource.c b/clients/multi-resource.c
index 2fca7c3..2be0a7e 100644
--- a/clients/multi-resource.c
+++ b/clients/multi-resource.c
@@ -24,6 +24,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
diff --git a/clients/nested-client.c b/clients/nested-client.c
index 1891034..9918da1 100644
--- a/clients/nested-client.c
+++ b/clients/nested-client.c
@@ -23,6 +23,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/presentation-shm.c b/clients/presentation-shm.c
index 998ce8b..c9fb66c 100644
--- a/clients/presentation-shm.c
+++ b/clients/presentation-shm.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/scaler.c b/clients/scaler.c
index f504c73..17ca55d 100644
--- a/clients/scaler.c
+++ b/clients/scaler.c
@@ -24,6 +24,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
diff --git a/clients/simple-damage.c b/clients/simple-damage.c
index bb81902..9f0eb3e 100644
--- a/clients/simple-damage.c
+++ b/clients/simple-damage.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/simple-dmabuf-intel.c b/clients/simple-dmabuf-intel.c
index ff9b9d6..505ecb0 100644
--- a/clients/simple-dmabuf-intel.c
+++ b/clients/simple-dmabuf-intel.c
@@ -24,6 +24,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/simple-dmabuf-v4l.c b/clients/simple-dmabuf-v4l.c
index 7ee5cce..c92a3eb 100644
--- a/clients/simple-dmabuf-v4l.c
+++ b/clients/simple-dmabuf-v4l.c
@@ -22,6 +22,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/simple-egl.c b/clients/simple-egl.c
index c43e74c..ddf2f9b 100644
--- a/clients/simple-egl.c
+++ b/clients/simple-egl.c
@@ -23,6 +23,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/simple-shm.c b/clients/simple-shm.c
index c442d88..b1fc5f1 100644
--- a/clients/simple-shm.c
+++ b/clients/simple-shm.c
@@ -24,6 +24,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/simple-touch.c b/clients/simple-touch.c
index 8fd0b0a..4d01147 100644
--- a/clients/simple-touch.c
+++ b/clients/simple-touch.c
@@ -24,6 +24,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/stacking.c b/clients/stacking.c
index 6748576..4285a17 100644
--- a/clients/stacking.c
+++ b/clients/stacking.c
@@ -24,6 +24,7 @@
#include "config.h"
#include <assert.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/weston-info.c b/clients/weston-info.c
index c4f7660..712346a 100644
--- a/clients/weston-info.c
+++ b/clients/weston-info.c
@@ -25,6 +25,7 @@
#include <errno.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/weston-simple-im.c b/clients/weston-simple-im.c
index c997467..2d23930 100644
--- a/clients/weston-simple-im.c
+++ b/clients/weston-simple-im.c
@@ -23,6 +23,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/clients/window.h b/clients/window.h
index 97719a7..1ad3b4f 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -26,6 +26,7 @@
#include "config.h"
+#include <stdint.h>
#include <xkbcommon/xkbcommon.h>
#include <wayland-client.h>
#include <cairo.h>
diff --git a/compositor/cms-colord.c b/compositor/cms-colord.c
index b9bc9e3..152a734 100644
--- a/compositor/cms-colord.c
+++ b/compositor/cms-colord.c
@@ -27,6 +27,7 @@
#include <fcntl.h>
#include <unistd.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/compositor/cms-helper.c b/compositor/cms-helper.c
index 7b7b8aa..1784c46 100644
--- a/compositor/cms-helper.c
+++ b/compositor/cms-helper.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
#include <stdio.h>
#ifdef HAVE_LCMS
diff --git a/compositor/main.c b/compositor/main.c
index 1f75ae0..99cb868 100644
--- a/compositor/main.c
+++ b/compositor/main.c
@@ -33,6 +33,7 @@
#include <signal.h>
#include <errno.h>
#include <dlfcn.h>
+#include <stdint.h>
#include <string.h>
#include <sys/utsname.h>
#include <sys/stat.h>
diff --git a/compositor/screen-share.c b/compositor/screen-share.c
index c9e7436..0db0203 100644
--- a/compositor/screen-share.c
+++ b/compositor/screen-share.c
@@ -27,6 +27,7 @@
#include "config.h"
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
diff --git a/compositor/text-backend.c b/compositor/text-backend.c
index 0c000ba..262ba9f 100644
--- a/compositor/text-backend.c
+++ b/compositor/text-backend.c
@@ -28,6 +28,7 @@
#include <stdbool.h>
#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
diff --git a/compositor/weston-screenshooter.c b/compositor/weston-screenshooter.c
index 234ee0b..9999909 100644
--- a/compositor/weston-screenshooter.c
+++ b/compositor/weston-screenshooter.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <linux/input.h>
#include "compositor.h"
diff --git a/desktop-shell/exposay.c b/desktop-shell/exposay.c
index f05fa4c..b11a7f7 100644
--- a/desktop-shell/exposay.c
+++ b/desktop-shell/exposay.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <linux/input.h>
#include "shell.h"
diff --git a/desktop-shell/input-panel.c b/desktop-shell/input-panel.c
index 0d003b1..2e18e28 100644
--- a/desktop-shell/input-panel.c
+++ b/desktop-shell/input-panel.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 9b77add..64979cd 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
diff --git a/desktop-shell/shell.h b/desktop-shell/shell.h
index f8f62d5..f73cae5 100644
--- a/desktop-shell/shell.h
+++ b/desktop-shell/shell.h
@@ -24,6 +24,7 @@
*/
#include <stdbool.h>
+#include <stdint.h>
#include <time.h>
#include "compositor.h"
diff --git a/fullscreen-shell/fullscreen-shell.c b/fullscreen-shell/fullscreen-shell.c
index 2ec2d02..1eea38a 100644
--- a/fullscreen-shell/fullscreen-shell.c
+++ b/fullscreen-shell/fullscreen-shell.c
@@ -28,6 +28,7 @@
#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
diff --git a/ivi-shell/hmi-controller.c b/ivi-shell/hmi-controller.c
index 0c28e81..f3a8830 100644
--- a/ivi-shell/hmi-controller.c
+++ b/ivi-shell/hmi-controller.c
@@ -52,6 +52,7 @@
#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <linux/input.h>
diff --git a/ivi-shell/input-panel-ivi.c b/ivi-shell/input-panel-ivi.c
index 954d4ef..4c71cc7 100644
--- a/ivi-shell/input-panel-ivi.c
+++ b/ivi-shell/input-panel-ivi.c
@@ -28,6 +28,7 @@
#include "config.h"
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h
index e437d9e..c909de2 100644
--- a/ivi-shell/ivi-layout-export.h
+++ b/ivi-shell/ivi-layout-export.h
@@ -55,6 +55,8 @@
extern "C" {
#endif /* __cplusplus */
+#include <stdint.h>
+
#include "stdbool.h"
#include "compositor.h"
diff --git a/ivi-shell/ivi-layout-private.h b/ivi-shell/ivi-layout-private.h
index 66b19f6..b6f0889 100644
--- a/ivi-shell/ivi-layout-private.h
+++ b/ivi-shell/ivi-layout-private.h
@@ -26,6 +26,8 @@
#ifndef _ivi_layout_PRIVATE_H_
#define _ivi_layout_PRIVATE_H_
+#include <stdint.h>
+
#include "compositor.h"
#include "ivi-layout-export.h"
diff --git a/ivi-shell/ivi-layout-transition.c b/ivi-shell/ivi-layout-transition.c
index 4913db4..bf0640e 100644
--- a/ivi-shell/ivi-layout-transition.c
+++ b/ivi-shell/ivi-layout-transition.c
@@ -28,6 +28,7 @@
#include <time.h>
#include <assert.h>
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index dec4936..7c2f32d 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -59,6 +59,7 @@
#include <string.h>
#include <assert.h>
+#include <stdint.h>
#include "compositor/weston.h"
#include "compositor.h"
diff --git a/ivi-shell/ivi-shell.c b/ivi-shell/ivi-shell.c
index 090ee4d..c996b8f 100644
--- a/ivi-shell/ivi-shell.c
+++ b/ivi-shell/ivi-shell.c
@@ -35,6 +35,7 @@
*/
#include "config.h"
+#include <stdint.h>
#include <string.h>
#include <dlfcn.h>
#include <limits.h>
diff --git a/ivi-shell/ivi-shell.h b/ivi-shell/ivi-shell.h
index 369e5f8..e35f75f 100644
--- a/ivi-shell/ivi-shell.h
+++ b/ivi-shell/ivi-shell.h
@@ -27,6 +27,7 @@
#define WESTON_IVI_SHELL_H
#include <stdbool.h>
+#include <stdint.h>
#include "compositor.h"
diff --git a/libweston/animation.c b/libweston/animation.c
index 2c7943f..30b3e5d 100644
--- a/libweston/animation.c
+++ b/libweston/animation.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
#include <stdio.h>
#include <math.h>
diff --git a/libweston/bindings.c b/libweston/bindings.c
index cc68cfe..2136652 100644
--- a/libweston/bindings.c
+++ b/libweston/bindings.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdlib.h>
#include <linux/input.h>
diff --git a/libweston/clipboard.c b/libweston/clipboard.c
index 54a578f..f37508c 100644
--- a/libweston/clipboard.c
+++ b/libweston/clipboard.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <linux/input.h>
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index f903a3b..34922af 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -27,6 +27,7 @@
#include "config.h"
#include <errno.h>
+#include <stdint.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
diff --git a/libweston/compositor-fbdev.c b/libweston/compositor-fbdev.c
index e21ceca..852acc0 100644
--- a/libweston/compositor-fbdev.c
+++ b/libweston/compositor-fbdev.c
@@ -30,6 +30,7 @@
#include <errno.h>
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
diff --git a/libweston/compositor-fbdev.h b/libweston/compositor-fbdev.h
index 9b5bf8e..7b182c7 100644
--- a/libweston/compositor-fbdev.h
+++ b/libweston/compositor-fbdev.h
@@ -30,6 +30,8 @@
extern "C" {
#endif
+#include <stdint.h>
+
#include "compositor.h"
#define WESTON_FBDEV_BACKEND_CONFIG_VERSION 1
diff --git a/libweston/compositor-headless.c b/libweston/compositor-headless.c
index 6c22ee3..e514b17 100644
--- a/libweston/compositor-headless.c
+++ b/libweston/compositor-headless.c
@@ -26,6 +26,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
diff --git a/libweston/compositor-headless.h b/libweston/compositor-headless.h
index 1432f70..b432b09 100644
--- a/libweston/compositor-headless.h
+++ b/libweston/compositor-headless.h
@@ -30,6 +30,8 @@
extern "C" {
#endif
+#include <stdint.h>
+
#include "compositor.h"
#define WESTON_HEADLESS_BACKEND_CONFIG_VERSION 1
diff --git a/libweston/compositor-rdp.c b/libweston/compositor-rdp.c
index 53c7124..2a270d3 100644
--- a/libweston/compositor-rdp.c
+++ b/libweston/compositor-rdp.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
diff --git a/libweston/compositor-wayland.c b/libweston/compositor-wayland.c
index 1343e21..ceb5050 100644
--- a/libweston/compositor-wayland.c
+++ b/libweston/compositor-wayland.c
@@ -27,6 +27,7 @@
#include "config.h"
#include <stddef.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/libweston/compositor-wayland.h b/libweston/compositor-wayland.h
index de69b98..b705dee 100644
--- a/libweston/compositor-wayland.h
+++ b/libweston/compositor-wayland.h
@@ -32,6 +32,8 @@
extern "C" {
#endif
+#include <stdint.h>
+
#define WESTON_WAYLAND_BACKEND_CONFIG_VERSION 1
struct weston_wayland_backend_output_config {
diff --git a/libweston/compositor-x11.c b/libweston/compositor-x11.c
index e2e6110..9e2dc37 100644
--- a/libweston/compositor-x11.c
+++ b/libweston/compositor-x11.c
@@ -29,6 +29,7 @@
#include <assert.h>
#include <stddef.h>
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
diff --git a/libweston/compositor-x11.h b/libweston/compositor-x11.h
index 8363a76..6a17f96 100644
--- a/libweston/compositor-x11.h
+++ b/libweston/compositor-x11.h
@@ -30,6 +30,8 @@
extern "C" {
#endif
+#include <stdint.h>
+
#include "compositor.h"
#define WESTON_X11_BACKEND_CONFIG_VERSION 1
diff --git a/libweston/compositor.h b/libweston/compositor.h
index ad2f6e3..0133084 100644
--- a/libweston/compositor.h
+++ b/libweston/compositor.h
@@ -32,6 +32,7 @@
#endif
#include <stdbool.h>
+#include <stdint.h>
#include <time.h>
#include <pixman.h>
#include <xkbcommon/xkbcommon.h>
diff --git a/libweston/data-device.c b/libweston/data-device.c
index 44a08f9..19d3972 100644
--- a/libweston/data-device.c
+++ b/libweston/data-device.c
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <stdint.h>
#include <stdio.h>
#include <assert.h>
diff --git a/libweston/dbus.c b/libweston/dbus.c
index cadedd9..36815db 100644
--- a/libweston/dbus.c
+++ b/libweston/dbus.c
@@ -35,6 +35,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/epoll.h>
diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
index be6b11e..ed44c6d 100644
--- a/libweston/gl-renderer.c
+++ b/libweston/gl-renderer.c
@@ -30,6 +30,7 @@
#include <GLES2/gl2ext.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
diff --git a/libweston/gl-renderer.h b/libweston/gl-renderer.h
index ad81a64..37d000f 100644
--- a/libweston/gl-renderer.h
+++ b/libweston/gl-renderer.h
@@ -25,6 +25,8 @@
#include "config.h"
+#include <stdint.h>
+
#include "compositor.h"
#ifdef ENABLE_EGL
diff --git a/libweston/launcher-logind.c b/libweston/launcher-logind.c
index f755ec3..8d5e8f9 100644
--- a/libweston/launcher-logind.c
+++ b/libweston/launcher-logind.c
@@ -30,6 +30,7 @@
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/libweston/launcher-util.c b/libweston/launcher-util.c
index 03b9d63..4abd1e2 100644
--- a/libweston/launcher-util.c
+++ b/libweston/launcher-util.c
@@ -31,6 +31,7 @@
#include "launcher-util.h"
#include "launcher-impl.h"
+#include <stdint.h>
#include <unistd.h>
#include <linux/input.h>
diff --git a/libweston/launcher-weston-launch.c b/libweston/launcher-weston-launch.c
index ad919f1..96ac25a 100644
--- a/libweston/launcher-weston-launch.c
+++ b/libweston/launcher-weston-launch.c
@@ -23,6 +23,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/libweston/libbacklight.c b/libweston/libbacklight.c
index 722d66f..4039575 100644
--- a/libweston/libbacklight.c
+++ b/libweston/libbacklight.c
@@ -32,6 +32,7 @@
#include "config.h"
#include "libbacklight.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/libweston/libinput-device.c b/libweston/libinput-device.c
index 782f656..f97afcf 100644
--- a/libweston/libinput-device.c
+++ b/libweston/libinput-device.c
@@ -27,6 +27,7 @@
#include "config.h"
#include <errno.h>
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <linux/input.h>
diff --git a/libweston/libinput-seat.c b/libweston/libinput-seat.c
index 94e19f5..78a5fc4 100644
--- a/libweston/libinput-seat.c
+++ b/libweston/libinput-seat.c
@@ -26,6 +26,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/libweston/linux-dmabuf.c b/libweston/linux-dmabuf.c
index a91ae85..7b29f08 100644
--- a/libweston/linux-dmabuf.c
+++ b/libweston/linux-dmabuf.c
@@ -23,6 +23,7 @@
#include "config.h"
#include <assert.h>
+#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
diff --git a/libweston/noop-renderer.c b/libweston/noop-renderer.c
index b6499b8..6eed40e 100644
--- a/libweston/noop-renderer.c
+++ b/libweston/noop-renderer.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdlib.h>
#include "compositor.h"
diff --git a/libweston/pixman-renderer.c b/libweston/pixman-renderer.c
index f66a11e..4ba1377 100644
--- a/libweston/pixman-renderer.c
+++ b/libweston/pixman-renderer.c
@@ -28,6 +28,7 @@
#include "config.h"
#include <errno.h>
+#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
diff --git a/libweston/screenshooter.c b/libweston/screenshooter.c
index fc14ad3..2c5dacc 100644
--- a/libweston/screenshooter.c
+++ b/libweston/screenshooter.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <linux/input.h>
diff --git a/libweston/spring-tool.c b/libweston/spring-tool.c
index 1848b3f..9e7c344 100644
--- a/libweston/spring-tool.c
+++ b/libweston/spring-tool.c
@@ -23,6 +23,8 @@
* SOFTWARE.
*/
+#include <stdint.h>
+
#include "config.h"
#include "compositor.h"
diff --git a/libweston/zoom.c b/libweston/zoom.c
index 08c0693..a1a1ab2 100644
--- a/libweston/zoom.c
+++ b/libweston/zoom.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <assert.h>
+#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
diff --git a/shared/config-parser.c b/shared/config-parser.c
index d5bbb8d..1edfd60 100644
--- a/shared/config-parser.c
+++ b/shared/config-parser.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <string.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
diff --git a/shared/config-parser.h b/shared/config-parser.h
index 17ef5d7..f18d2c0 100644
--- a/shared/config-parser.h
+++ b/shared/config-parser.h
@@ -30,6 +30,8 @@
extern "C" {
#endif
+#include <stdint.h>
+
#define WESTON_CONFIG_FILE_ENV_VAR "WESTON_CONFIG_FILE"
enum config_key_type {
diff --git a/shared/frame.c b/shared/frame.c
index 1b67eb1..9cd44c6 100644
--- a/shared/frame.c
+++ b/shared/frame.c
@@ -27,6 +27,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <wayland-util.h>
diff --git a/shared/image-loader.c b/shared/image-loader.c
index f477dfd..30b57cd 100644
--- a/shared/image-loader.c
+++ b/shared/image-loader.c
@@ -28,6 +28,7 @@
#include <errno.h>
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <png.h>
diff --git a/shared/xalloc.c b/shared/xalloc.c
index 9bf5245..1cc5c12 100644
--- a/shared/xalloc.c
+++ b/shared/xalloc.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <errno.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/shared/xalloc.h b/shared/xalloc.h
index 85fccb4..484de2d 100644
--- a/shared/xalloc.h
+++ b/shared/xalloc.h
@@ -30,6 +30,7 @@
extern "C" {
#endif
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/buffer-count-test.c b/tests/buffer-count-test.c
index 065249d..e7d8ca7 100644
--- a/tests/buffer-count-test.c
+++ b/tests/buffer-count-test.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <string.h>
+#include <stdint.h>
#include <stdio.h>
#include <EGL/egl.h>
#include <wayland-egl.h>
diff --git a/tests/internal-screenshot-test.c b/tests/internal-screenshot-test.c
index 458ebdb..3bf9b31 100644
--- a/tests/internal-screenshot-test.c
+++ b/tests/internal-screenshot-test.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include "weston-test-client-helper.h"
diff --git a/tests/ivi_layout-internal-test.c b/tests/ivi_layout-internal-test.c
index bc36ad1..d851ec0 100644
--- a/tests/ivi_layout-internal-test.c
+++ b/tests/ivi_layout-internal-test.c
@@ -30,6 +30,7 @@
#include <signal.h>
#include <string.h>
#include <stdbool.h>
+#include <stdint.h>
#include "compositor.h"
#include "ivi-shell/ivi-layout-export.h"
diff --git a/tests/ivi_layout-test-plugin.c b/tests/ivi_layout-test-plugin.c
index ef6903a..f6e465b 100644
--- a/tests/ivi_layout-test-plugin.c
+++ b/tests/ivi_layout-test-plugin.c
@@ -27,6 +27,7 @@
#include "config.h"
+#include <stdint.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
diff --git a/tests/ivi_layout-test.c b/tests/ivi_layout-test.c
index 7f22673..72aad7f 100644
--- a/tests/ivi_layout-test.c
+++ b/tests/ivi_layout-test.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
diff --git a/tests/keyboard-test.c b/tests/keyboard-test.c
index 9cf69ec..6b4ba19 100644
--- a/tests/keyboard-test.c
+++ b/tests/keyboard-test.c
@@ -25,6 +25,8 @@
#include "config.h"
+#include <stdint.h>
+
#include "weston-test-client-helper.h"
TEST(simple_keyboard_test)
diff --git a/tests/presentation-test.c b/tests/presentation-test.c
index cb5ff19..f12f8ee 100644
--- a/tests/presentation-test.c
+++ b/tests/presentation-test.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/surface-global-test.c b/tests/surface-global-test.c
index b0a1d1c..55899c6 100644
--- a/tests/surface-global-test.c
+++ b/tests/surface-global-test.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <assert.h>
+#include <stdint.h>
#include "compositor.h"
diff --git a/tests/surface-screenshot.c b/tests/surface-screenshot.c
index 703d48b..332b5e3 100644
--- a/tests/surface-screenshot.c
+++ b/tests/surface-screenshot.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
diff --git a/tests/text-test.c b/tests/text-test.c
index b4a32f4..685a28d 100644
--- a/tests/text-test.c
+++ b/tests/text-test.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <string.h>
+#include <stdint.h>
#include <stdio.h>
#include "weston-test-client-helper.h"
diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c
index 1056f41..fd6ebaf 100644
--- a/tests/weston-test-client-helper.c
+++ b/tests/weston-test-client-helper.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h
index d6ecb5f..8908ae7 100644
--- a/tests/weston-test-client-helper.h
+++ b/tests/weston-test-client-helper.h
@@ -30,6 +30,7 @@
#include <assert.h>
#include <stdbool.h>
+#include <stdint.h>
#include <pixman.h>
#include <wayland-client-protocol.h>
diff --git a/tests/weston-test.c b/tests/weston-test.c
index 09d8b5e..afda7bc 100644
--- a/tests/weston-test.c
+++ b/tests/weston-test.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <signal.h>
diff --git a/wcap/wcap-decode.h b/wcap/wcap-decode.h
index 3c37441..00b757f 100644
--- a/wcap/wcap-decode.h
+++ b/wcap/wcap-decode.h
@@ -26,6 +26,8 @@
#ifndef _WCAP_DECODE_
#define _WCAP_DECODE_
+#include <stdint.h>
+
#define WCAP_HEADER_MAGIC 0x57434150
#define WCAP_FORMAT_XRGB8888 0x34325258
diff --git a/xwayland/dnd.c b/xwayland/dnd.c
index f17e4cd..61edb11 100644
--- a/xwayland/dnd.c
+++ b/xwayland/dnd.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
diff --git a/xwayland/hash.h b/xwayland/hash.h
index 6e1674e..334d8f4 100644
--- a/xwayland/hash.h
+++ b/xwayland/hash.h
@@ -35,6 +35,8 @@
#ifndef HASH_H
#define HASH_H
+#include <stdint.h>
+
struct hash_table;
struct hash_table *hash_table_create(void);
typedef void (*hash_table_iterator_func_t)(void *element, void *data);
diff --git a/xwayland/launcher.c b/xwayland/launcher.c
index b7aee3b..15443cd 100644
--- a/xwayland/launcher.c
+++ b/xwayland/launcher.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
diff --git a/xwayland/selection.c b/xwayland/selection.c
index bd5e28a..641ac49 100644
--- a/xwayland/selection.c
+++ b/xwayland/selection.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index 49d974e..5f86d8a 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -26,6 +26,7 @@
#include "config.h"
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>