diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-04-03 20:25:30 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-04-03 20:28:11 -0400 |
commit | 8fbf50d31da9e13f1e55c7ee19586b7c394684ba (patch) | |
tree | 375f55d2684b5e11b5a3f70ffd0d9b71272dd2c6 /src/cairo-beos-surface.cpp | |
parent | ffc7d06da0f97390025a510b9532e4a64e9230f4 (diff) |
[src] Make sure all source files #include "cairoint.h" as their first include
This is necessary to avoid many portability problems as cairoint.h includes
config.h. Without a test, we will regress again, hence add it.
The inclusion idiom for cairo now is:
#include "cairoint.h"
#include "cairo-something.h"
#include "cairo-anotherthing-private.h"
#include <some-library.h>
#include <other-library/other-file.h>
Moreover, some standard headers files are included from cairoint.h and need
not be included again.
Diffstat (limited to 'src/cairo-beos-surface.cpp')
-rw-r--r-- | src/cairo-beos-surface.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cairo-beos-surface.cpp b/src/cairo-beos-surface.cpp index 066e389a..e0ff2971 100644 --- a/src/cairo-beos-surface.cpp +++ b/src/cairo-beos-surface.cpp @@ -36,6 +36,10 @@ // This is a C++ file in order to use the C++ BeOS API +#include "cairoint.h" + +#include "cairo-beos.h" + #include <new> #include <Bitmap.h> @@ -47,9 +51,6 @@ #include <Window.h> #include <Locker.h> -#include "cairoint.h" -#include "cairo-beos.h" - #define CAIRO_INT_STATUS_SUCCESS (cairo_int_status_t)(CAIRO_STATUS_SUCCESS) struct cairo_beos_surface_t { |