aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
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