#include "gettext.h"
#include "draw.h"
-#ifdef OSX
-# include "gtkmacintegration/gtkosxapplication.h"
+#ifdef __APPLE__
+# include <gtkmacintegration/gtkosxapplication.h>
// prevent pathname of positional file argument provided by OS X being be mistaken for option name
// (price is that we won't recognize Windows option format anymore).
# define SLASH '-'
gtk_window_resize(GTK_WINDOW(shells[DummyDlg]), slaveW + opt->max, slaveH + opt->value);
}
-#ifdef OSX
+#ifdef __APPLE__
static char clickedFile[MSG_SIZ];
static int suppress;
/* set up GTK */
gtk_init (&argc, &argv);
-#ifdef OSX
+#ifdef __APPLE__
{ // prepare to catch OX OpenFile signal, which will tell us the clicked file
GtkosxApplication *theApp = g_object_new(GTKOSX_TYPE_APPLICATION, NULL);
dataDir = gtkosx_application_get_bundle_path();
void
ManProc ()
{ // called from menu
-#ifdef OSX
+#ifdef __APPLE__
system("%s ./man.command", appData.sysOpen);
#else
system("xterm -e man xboard &");
#include <cairo/cairo-xlib.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
-#ifdef OSX
-# include "gtkmacintegration/gtkosxapplication.h"
+#ifdef __APPLE__
+# include <gtkmacintegration/gtkosxapplication.h>
#endif
#include "common.h"
{
char *msg = mb[i].string;
if(!msg) break;
-#ifdef OSX
+#ifdef __APPLE__
if(!strcmp(msg, "Quit ")) continue; // Quit item will appear automatically in App menu
if(!strcmp(msg, "About XBoard")) msg = "About"; // 'XBoard' will be appended automatically when moved to App menu 1st item
#endif
GdkModifierType accelerator_mods;
gtk_accelerator_parse(mb[i].accel, &accelerator_key, &accelerator_mods);
-#ifdef OSX
+#ifdef __APPLE__
if(accelerator_mods & GDK_CONTROL_MASK) { // in OSX use Meta where Linux uses Ctrl
accelerator_mods &= ~GDK_CONTROL_MASK; // clear Ctrl flag
accelerator_mods |= GDK_META_MASK; // set Meta flag
break;
case BarEnd:
top--;
-#ifndef OSX
+#ifndef __APPLE__
gtk_table_attach(GTK_TABLE(table), menuBar, left, left+r, top, top+1, GTK_FILL | GTK_EXPAND, GTK_FILL, 2, 1);
if(option[i].target) ((ButtonCallback*)option[i].target)(boxStart); // callback that can make sizing decisions