Make sure config.h is included before any system headers
authorAndrew Wedgbury <andrew.wedgbury@realvnc.com>
Mon, 7 Apr 2014 11:40:35 +0000 (12:40 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 7 Apr 2014 17:22:28 +0000 (10:22 -0700)
commit9cd661e746708a76761ff1fda361c6276ee71ab1
treea69e2745f3d3a64e31a1e9675a25738ec231018c
parentba83db216ca8b84c250f9902fbbd4883cf63912b
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>
33 files changed:
clients/calibrator.c
clients/clickdot.c
clients/cliptest.c
clients/dnd.c
clients/eventdemo.c
clients/flower.c
clients/fullscreen.c
clients/image.c
clients/keyboard.c
clients/nested-client.c
clients/nested.c
clients/resizor.c
clients/scaler.c
clients/simple-egl.c
clients/smoke.c
clients/subsurfaces.c
clients/transformed.c
clients/window.h
clients/wscreensaver.h
shared/os-compatibility.h
src/vaapi-recorder.c
tests/bad-buffer-test.c
tests/buffer-count-test.c
tests/button-test.c
tests/config-parser-test.c
tests/matrix-test.c
tests/setbacklight.c
tests/subsurface-test.c
tests/surface-global-test.c
tests/text-test.c
tests/vertex-clip-test.c
tests/weston-test-client-helper.h
tests/weston-test-runner.h