mirror of
https://github.com/rkd77/elinks.git
synced 2025-09-21 19:46:23 -04:00
[ecmascript] Guard for builds without mozjs. Refs #81
This commit is contained in:
@@ -5,6 +5,12 @@
|
||||
/* In the future you will get DOM, a complete ECMAScript interface and free
|
||||
* plasm displays for everyone. */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ECMASCRIPT
|
||||
|
||||
#include <jsapi.h>
|
||||
|
||||
#include "main/module.h"
|
||||
@@ -105,3 +111,5 @@ void ecmascript_set_timeout2(struct ecmascript_interpreter *interpreter, JS::Han
|
||||
extern struct module ecmascript_module;
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user