mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 20:28:02 +02:00
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:
parent
913f4767e7
commit
1dc945863b
2 changed files with 2 additions and 1 deletions
|
|
@ -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)'
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
* with this .c wrapper containing the gtkdocs for cairo-dwrite-font.cpp.
|
||||
*/
|
||||
|
||||
#include "cairoint.h"
|
||||
#include "cairo-win32-private.h"
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue