From ad5db89b499d4737b8d6cc20d1e1dcf1efcb6440 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 9 Aug 2012 16:26:57 +0100 Subject: Fix include and structure definition to stop compiler redefinition errors --- javascript/jsapi.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'javascript/jsapi.h') diff --git a/javascript/jsapi.h b/javascript/jsapi.h index 98b7d0228..2c10d02ce 100644 --- a/javascript/jsapi.h +++ b/javascript/jsapi.h @@ -29,6 +29,8 @@ #include "mozjs/jsapi.h" #endif +#include "render/html_internal.h" + #if JS_VERSION <= 180 #include @@ -136,9 +138,6 @@ JS_NewCompartmentAndGlobalObject(JSContext *cx, #endif -typedef struct dom_element dom_element; -typedef struct html_content html_content; - /** Create a new javascript window object * * @param cx The javascript context. -- cgit v1.2.3