[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacOSX: ismac() implementation

From: Thomas Treichl
Subject: Re: MacOSX: ismac() implementation
Date: Thu, 11 Oct 2007 21:50:15 +0200
User-agent: Thunderbird (Macintosh/20070728)

John W. Eaton schrieb:
On  6-Oct-2007, Thomas Treichl wrote:

| John W. Eaton schrieb:
| | > How reliable will this be if you use a different compiler? | | I think I can't answer this question by sure, I can only say that __APPLE__ is | the replacement for __darwin__ since MacOSX and __MACH__ seems to be there for a | long time. These macros have been introduced by GNU and are also used on the | Apple Developer website for the one or other example. There seem to be other | proprietary compilers for Mac available but I don't know if they come with these | macros.

OK, I added the ismac function but I just used the

  #if defined (__APPLE__) && defined (__MACH__)

directly in toplev.cc instead of using them to define MACOS since I
don't see that symbol being used in other places.

Also, I named the field "mac" instead of "macos", but if there are
good reasons to use "macos" instead, please explain.



No comments about that, thanks for adding this function. I just added another *.diff to this email to replace macos_system with mac_system - with this patch and after the compilation of the current CVS sources my Mac ismac() ;-)


--- src/toplev.cc.~1.203.~      2007-10-11 20:46:15.000000000 +0200
+++ src/toplev.cc       2007-10-11 21:29:29.000000000 +0200
@@ -921,7 +921,7 @@
       bool unix_system = true;
-      bool macos_system = false;
+      bool mac_system = false;
       bool windows_system = false;
 #if defined (WIN32)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]