diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2019-11-23 23:07:21 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2020-01-19 15:40:14 -0800 |
commit | d783d40c8162ed94254bdb3762592cdbece6e5ba (patch) | |
tree | 053d64e7536380059c66169705f1a4cb01a86408 /gjs/jsapi-util-root.h | |
parent | a3c8f4caa973f967d6f74c2ab5e94ab840d015a2 (diff) | |
download | gjs-d783d40c8162ed94254bdb3762592cdbece6e5ba.tar.gz |
js: Remove jsapi-wrapper.h
With SpiderMonkey 68, it's no longer necessary to mark SpiderMonkey
header files as system headers, and it's also no longer necessary to
include <js-config.h> before any other header files, as SpiderMonkey
has sorted that out internally.
We remove jsapi-wrapper.h and define DEBUG directly in config.h instead
of indirectly in jsapi-wrapper.h via HAVE_SPIDERMONKEY_DEBUG.
This should reduce compile time, on average, because in most .h files
we now only need to include <js/TypeDecls.h>.
Diffstat (limited to 'gjs/jsapi-util-root.h')
-rw-r--r-- | gjs/jsapi-util-root.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gjs/jsapi-util-root.h b/gjs/jsapi-util-root.h index ccb05600..fb08d012 100644 --- a/gjs/jsapi-util-root.h +++ b/gjs/jsapi-util-root.h @@ -25,6 +25,8 @@ #ifndef GJS_JSAPI_UTIL_ROOT_H_ #define GJS_JSAPI_UTIL_ROOT_H_ +#include <config.h> + #include <stdint.h> // for uintptr_t #include <cstddef> // for nullptr_t @@ -35,7 +37,8 @@ #include <glib-object.h> #include <glib.h> -#include "gjs/jsapi-wrapper.h" +#include <js/TracingAPI.h> +#include <js/TypeDecls.h> #include "gjs/context-private.h" #include "gjs/context.h" |