summaryrefslogtreecommitdiff
path: root/mcon.c
diff options
context:
space:
mode:
Diffstat (limited to 'mcon.c')
-rw-r--r--mcon.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/mcon.c b/mcon.c
index 594c6a6..17bfbb4 100644
--- a/mcon.c
+++ b/mcon.c
@@ -3,11 +3,18 @@
Written by: John van Groningen
*/
-#define MACOSX
-#define NEW_HEADERS
+/* #define MACOSX */
#define G_POWER
-#define FLUSH_PORT_BUFFER
-#define STACK_OVERFLOW_EXCEPTION_HANDLER
+#define NEW_HEADERS
+#ifdef MACHO
+# define MACOSX
+#endif
+#ifdef MACHO
+# define FLUSH_PORT_BUFFER
+#endif
+#if defined (MACOSX) || defined (MACHO)
+# define STACK_OVERFLOW_EXCEPTION_HANDLER
+#endif
#ifdef MACHO
# define NEWLINE_CHAR '\r'
@@ -15,7 +22,7 @@
# define NEWLINE_CHAR '\n'
#endif
-#ifdef NEW_HEADERS
+#ifdef MACOSX
# define TARGET_API_MAC_CARBON 1
#endif