mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-26 12:06:22 +00:00
Remove ScriptTypes and ScriptExtraHeaders headers
The first header was used to include the SpiderMonkey JS API at once, with safeguards and preprocessor defines. Nowadays, SpiderMonkey provides modular headers allowing us to include what we use, refs #8086. Some defines have to be moved to compiler options but it is apparently a mistake from the SM developers: https://bugzilla.mozilla.org/show_bug.cgi?id=1987876
This commit is contained in:
@@ -20,11 +20,17 @@
|
||||
|
||||
#include "lib/debug.h"
|
||||
#include "ps/Singleton.h"
|
||||
#include "scriptinterface/ScriptTypes.h"
|
||||
|
||||
#include <js/Initialization.h>
|
||||
#include <list>
|
||||
|
||||
#if MOZJS_MAJOR_VERSION != 128
|
||||
#error Your compiler is trying to use an incorrect major version of the \
|
||||
SpiderMonkey library. The SpiderMonkey API is subject to changes, and the \
|
||||
game will not build with the selected version of the library. Make sure \
|
||||
you have got all the right files and include paths.
|
||||
#endif
|
||||
|
||||
struct JSContext;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user