diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2016-10-20 22:15:29 -0700 |
---|---|---|
committer | Philip Chimento <philip@endlessm.com> | 2016-10-21 18:41:25 -0700 |
commit | 8c620006bdbd75a9d40bffc2b4ca26a6ee18b46c (patch) | |
tree | 838264c11932f873ce1e4acb699da0180c42ff9e /modules/cairo-surface.cpp | |
parent | f3dd1d3c206821941de24bf5917ec40985061132 (diff) | |
download | gjs-8c620006bdbd75a9d40bffc2b4ca26a6ee18b46c.tar.gz |
build: Make a jsapi.h "system header" wrapper
We got rid of all the "compat" stuff in compat.h already, before this
commit it only included jsapi.h, jsdbgapi.h, and jsapi-util.h, wrapping
the former two in some diagnostic pragmas. If we get rid of the
jsapi-util.h include, then we can use a system_header pragma to mark it
as a system header so that we don't have to painstakingly maintain all
those diagnostic pragmas.
(The system_header pragma ignores all warnings coming from that file:
https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html)
Since compat.h already wasn't a fitting name anymore, rename the header
to jsapi-wrapper.h.
https://bugzilla.gnome.org/show_bug.cgi?id=773297
Diffstat (limited to 'modules/cairo-surface.cpp')
-rw-r--r-- | modules/cairo-surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cairo-surface.cpp b/modules/cairo-surface.cpp index e5635957..e1a43ede 100644 --- a/modules/cairo-surface.cpp +++ b/modules/cairo-surface.cpp @@ -22,9 +22,9 @@ #include <config.h> -#include "gjs/compat.h" #include "gi/foreign.h" #include "gjs/jsapi-util-args.h" +#include "gjs/jsapi-wrapper.h" #include <cairo.h> #include <cairo-gobject.h> #include "cairo-private.h" |