* Massachusetts.
*
* Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006,
- * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* The following terms apply to Digital Equipment Corporation's copyright
* interest in XBoard:
#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 '-'
char *dataDir; // for expanding ~~
#else
# define SLASH '/'
+# define DATADIR "~~"
#endif
#ifdef __EMX__
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 &");