all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: MAC_OS_X cpp macro?
Date: Tue, 11 Dec 2007 10:08:18 +0900	[thread overview]
Message-ID: <wlmysi82d9.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <jwvfxyapkf4.fsf-monnier+emacs@gnu.org>

>>>>> On Mon, 10 Dec 2007 11:47:56 -0500, Stefan Monnier <monnier@iro.umontreal.ca> said:

>> On a related note: do we have somewhere a list of such CPP defines
>> with their intended meanings?  If so, where?  If not, then let's
>> make one.

> While taking a look at this idea, I bumped into the following in
> mac.c:

>    [...]  #ifndef MAC_OS_X [...]

> AFAICT it's the only occurrence of MAC_OS_X in an ifdef/ifndef,
> whereas there are many occurrences of MAC_OSX.  Is that a typo?

Yes, it is a typo and does not do harm at this particular place.  I
was planning to fix it when merging the Mac-related changes as of the
before-merge-multi-tty-to-trunk tag to EMACS_22_BASE after the Emacs
22.2 release.

And some comments about some Mac-related defines in admin/CPP-DEFINES:

> MAC_OS		Compiling for some version of Mac OS?

In short, it corresponds to (eq window-system 'mac), or is equivalent
to `MAC_OS8 || (MAC_OSX && HAVE_CARBON)'.  Currently it can be said as
"Compile support for the Mac native GUI", but this will no longer be
true if the Cocoa port is merged.

> MAC_OS8		Compiling for Mac OS version 8.  Requires MAC_OS?

Compiling for Mac OS Classic (8 or 9).

> MAC_OSX		Compiling for Mac OS X?  Is that also valid for Darwin?

Compiling for Mac OS X.  Not valid for bare Darwin.
Also, DARWIN should not be defined for Mac OS X because it is used for
distinguishing them in CoreFoundation.h.

> HAVE_CARBON	Compile support for the Carbon GUI.  Requires MAC_OS?

Yes.  For MAC_OS8, either of HAVE_CARBON and !HAVE_CARBON is possible
and the native GUI is used anyway.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

  reply	other threads:[~2007-12-11  1:08 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-23 10:41 Emacs.app (Cocoa/GNUstep port) release and feature list Adrian Robert
2007-11-23 14:56 ` David Reitter
2007-11-23 15:25   ` YAMAMOTO Mitsuharu
2007-11-23 15:38   ` Adrian Robert
2007-11-23 15:29 ` Stefan Monnier
2007-11-23 16:10   ` Adrian Robert
2007-11-23 16:24     ` Stefan Monnier
2007-11-23 17:40       ` CHENG Gao
2007-11-25  6:58       ` Adrian Robert
2007-11-23 23:00 ` Dan Nicolaescu
2007-11-24 10:39   ` Adrian Robert
2007-11-24 16:33     ` Dan Nicolaescu
2007-11-25 11:17       ` Adrian Robert
2007-11-25 17:09         ` Dan Nicolaescu
2007-11-24 23:32     ` YAMAMOTO Mitsuharu
2007-12-01 12:30     ` Adrian Robert
2007-12-01 20:49       ` Stefan Monnier
2007-12-10 16:47         ` MAC_OS_X cpp macro? Stefan Monnier
2007-12-11  1:08           ` YAMAMOTO Mitsuharu [this message]
2007-12-11 18:57             ` Stefan Monnier
2007-12-12  0:07               ` YAMAMOTO Mitsuharu
2007-12-10 17:04         ` admin/CPP-DEFINES Stefan Monnier
2007-12-14 12:42           ` admin/CPP-DEFINES Eli Zaretskii
2007-11-24 11:37 ` Emacs.app (Cocoa/GNUstep port) release and feature list William Xu
2007-11-24 12:47   ` YAMAMOTO Mitsuharu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wlmysi82d9.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.