diff options
author | Andrew Wedgbury <andrew.wedgbury@realvnc.com> | 2014-04-07 12:40:35 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-04-07 10:22:28 -0700 |
commit | 9cd661e746708a76761ff1fda361c6276ee71ab1 (patch) | |
tree | a69e2745f3d3a64e31a1e9675a25738ec231018c /clients/window.h | |
parent | ba83db216ca8b84c250f9902fbbd4883cf63912b (diff) | |
download | weston-9cd661e746708a76761ff1fda361c6276ee71ab1.tar.gz weston-9cd661e746708a76761ff1fda361c6276ee71ab1.tar.bz2 weston-9cd661e746708a76761ff1fda361c6276ee71ab1.zip |
Make sure config.h is included before any system headers
There was an issue recently in screen-share.c where config.h was not
being included, resulting in the wrong definition for off_t being used on
32 bit systems. I checked and I don't think this problem is happening
elsewhere, but to help avoid this sort of problem in the future, I went
through and made sure that config.h is included first whenever system
headers are included.
The config.h header should be included before any system headers, failing
to do this can result in the wrong type sizes being defined on certain
systems, e.g. off_t from sys/types.h
Signed-off-by: Andrew Wedgbury <andrew.wedgbury@realvnc.com>
Diffstat (limited to 'clients/window.h')
-rw-r--r-- | clients/window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/window.h b/clients/window.h index ae3af404..4e4ccc1d 100644 --- a/clients/window.h +++ b/clients/window.h @@ -23,6 +23,8 @@ #ifndef _WINDOW_H_ #define _WINDOW_H_ +#include "config.h" + #include <xkbcommon/xkbcommon.h> #include <wayland-client.h> #include <cairo.h> |