diff src/toplev.cc @ 7010:f7d2f54008f5

[project @ 2007-10-11 17:50:34 by jwe]
author jwe
date Thu, 11 Oct 2007 17:50:34 +0000
parents 8b0cfeb06365
children f943e9635115
line wrap: on
line diff
--- a/src/toplev.cc
+++ b/src/toplev.cc
@@ -921,6 +921,7 @@
 	}
 
       bool unix_system = true;
+      bool macos_system = false;
       bool windows_system = false;
 
 #if defined (WIN32)
@@ -930,7 +931,12 @@
 #endif
 #endif
 
+#if defined (__APPLE__) && defined (__MACH__)
+      mac_system = true;
+#endif
+
       m.assign ("unix", octave_value (unix_system));
+      m.assign ("mac", octave_value (mac_system));
       m.assign ("windows", octave_value (windows_system));
 
       initialized = true;