aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorMiles Bader2008-05-04 19:46:16 +0000
committerMiles Bader2008-05-04 19:46:16 +0000
commitf67e15be8d94718b2e2ea7da68eb0b2dc94ce016 (patch)
treeb7cdaa984d777c3bd0425f2ca2612d9a1de0d832 /src/s
parentf8a295058a5682dbc70f48f376fe51a18d21281a (diff)
parent092a8af3e7cc0d72c417f9eb19c7ac61ef782a87 (diff)
downloademacs-f67e15be8d94718b2e2ea7da68eb0b2dc94ce016.tar.gz
emacs-f67e15be8d94718b2e2ea7da68eb0b2dc94ce016.zip
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1142
Diffstat (limited to 'src/s')
-rw-r--r--src/s/darwin.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/s/darwin.h b/src/s/darwin.h
index dee3480c783..2e7e4e40be4 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -265,9 +265,31 @@ Boston, MA 02110-1301, USA. */
265/* Indicate that we are compiling for Mac OS X. */ 265/* Indicate that we are compiling for Mac OS X. */
266#define C_SWITCH_SYSTEM -fpascal-strings -DMAC_OSX 266#define C_SWITCH_SYSTEM -fpascal-strings -DMAC_OSX
267 267
268#ifdef HAVE_CARBON
269
270#ifdef HAVE_AVAILABILITYMACROS_H
271#include <AvailabilityMacros.h>
272#endif
273
274/* Whether to use the Image I/O framework for reading images. */
275#ifndef USE_MAC_IMAGE_IO
276#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 && (MAC_OS_X_VERSION_MIN_REQUIRED >= 1040 || MAC_OS_X_VERSION_MIN_REQUIRED < 1020)
277#define USE_MAC_IMAGE_IO 1
278#endif
279#endif
280
281/* If the Image I/O framework is not used, fall back on QuickTime. */
282#if USE_MAC_IMAGE_IO
283#define LIBS_IMAGE
284#else
285#define LIBS_IMAGE -framework QuickTime
286#endif
287
288#endif /* HAVE_CARBON */
289
268/* Link in the Carbon lib. */ 290/* Link in the Carbon lib. */
269#ifdef HAVE_CARBON 291#ifdef HAVE_CARBON
270#define LIBS_CARBON -framework Carbon -framework QuickTime 292#define LIBS_CARBON -framework Carbon LIBS_IMAGE
271#else 293#else
272#define LIBS_CARBON 294#define LIBS_CARBON
273#endif 295#endif