Fix complaints from check-preprocessor-syntax.sh

Checking that public header files #include "cairo.h" first (or none)
Checking that private header files #include "some cairo header" first (or none)
Checking that source files #include "cairoint.h" first (or none)
./win32/cairo-dwrite-font-public.c:#include "cairo-win32-private.h"
Checking that there is no #include <cairo.*.h>
./win32/cairo-dwrite-font-public.c: * #include <cairo-win32.h>
Checking that feature conditionals are used with #if only (not #ifdef)

This adds a missing cairoint.h include and makes
check-preprocessor-syntax.sh slightly better in not warning about
includes in C comments.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2022-03-12 14:31:16 +01:00
parent 913f4767e7
commit 1dc945863b
2 changed files with 2 additions and 1 deletions

View file

@ -49,7 +49,7 @@ grep . >&2 && stat=1
echo 'Checking that there is no #include <cairo.*.h>'
grep '#.*\<include\>.*<.*cairo' $ALL >&2 && stat=1
grep '^[^*]#.*\<include\>.*<.*cairo' $ALL >&2 && stat=1
echo 'Checking that feature conditionals are used with #if only (not #ifdef)'

View file

@ -39,6 +39,7 @@
* with this .c wrapper containing the gtkdocs for cairo-dwrite-font.cpp.
*/
#include "cairoint.h"
#include "cairo-win32-private.h"
/**