From: Christian Dywan Date: Sat, 10 Jan 2009 19:13:08 +0000 (+0100) Subject: Correct conditionals for OS X and JavaScriptCore X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ad55618f6b23b96cacef0b029553dd067de1e71;p=midori Correct conditionals for OS X and JavaScriptCore --- diff --git a/midori/main.c b/midori/main.c index 4de785d1..7466595e 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1839,11 +1839,14 @@ midori_run_script (const gchar* filename) #ifdef WEBKIT_CHECK_VERSION #if WEBKIT_CHECK_VERSION (1, 0, 3) + #define HAVE_JSCONTEXTGROUP 1 + #endif + #endif + #if HAVE_JSCONTEXTGROUP js_context = JSGlobalContextCreateInGroup (NULL, NULL); #else js_context = JSGlobalContextCreate (NULL); #endif - #endif if (g_file_get_contents (filename, &script, NULL, &error)) { diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c index 8ac296ed..b825a459 100644 --- a/midori/midori-preferences.c +++ b/midori/midori-preferences.c @@ -96,7 +96,7 @@ midori_preferences_init (MidoriPreferences* preferences) "has-separator", FALSE, NULL); g_free (dialog_title); - #ifndef HAVE_OSX + #if !HAVE_OSX gtk_dialog_add_buttons (GTK_DIALOG (preferences), GTK_STOCK_HELP, GTK_RESPONSE_HELP, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c index d9852d4f..9a451549 100644 --- a/midori/midori-searchaction.c +++ b/midori/midori-searchaction.c @@ -1054,7 +1054,7 @@ midori_search_action_get_dialog (MidoriSearchAction* search_action) dialog = gtk_dialog_new_with_buttons (dialog_title, toplevel ? GTK_WINDOW (toplevel) : NULL, GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR, - #ifndef HAVE_OSX + #if !HAVE_OSX GTK_STOCK_HELP, GTK_RESPONSE_HELP, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, #endif diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c index 98f0c457..39d6e175 100644 --- a/midori/midori-websettings.c +++ b/midori/midori-websettings.c @@ -776,7 +776,7 @@ generate_ident_string (MidoriIdentity identify_as) #endif const gchar* os = - #if defined (HAVE_OSX) + #if HAVE_OSX /* #if defined (HAVE_X86) */ "Intel Mac OS X"; /* #else