From a74fa5b3cd39a05d43f6b806d11cac0d41723ae7 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 8 Jan 2009 01:49:54 +0100 Subject: [PATCH] Fix incorrect version conditionals for context groups --- midori/gjs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/midori/gjs.c b/midori/gjs.c index 99e4ec5f..057b9e39 100644 --- a/midori/gjs.c +++ b/midori/gjs.c @@ -1024,11 +1024,14 @@ gjs_global_context_new (void) { #ifdef WEBKIT_CHECK_VERSION #if WEBKIT_CHECK_VERSION (1, 0, 3) + #define HAVE_JSCONTEXTGROUP 1 + #endif + #endif + #if HAVE_JSCONTEXTGROUP JSGlobalContextRef js_context = JSGlobalContextCreateInGroup (NULL, NULL); #else JSGlobalContextRef js_context = JSGlobalContextCreate (NULL); #endif - #endif JSObjectRef js_object = gjs_object_new (js_context, "GJS", NULL); _js_object_set_property (js_context, JSContextGetGlobalObject (js_context), "gjs", js_object); -- 2.39.5