1 /****************************************************************************
5 * Mac/OS X support configuration header.
7 * Copyright (C) 1996-2023 by
8 * David Turner, Robert Wilhelm, and Werner Lemberg.
10 * This file is part of the FreeType project, and may only be used,
11 * modified, and distributed under the terms of the FreeType project
12 * license, LICENSE.TXT. By continuing to use, modify, or distribute
13 * this file you indicate that you have read the license and
14 * understand and accept it fully.
17 #ifndef FREETYPE_CONFIG_MAC_SUPPORT_H_
18 #define FREETYPE_CONFIG_MAC_SUPPORT_H_
20 /**************************************************************************
24 * This is the only necessary change, so it is defined here instead
25 * providing a new configuration file.
27 #if defined( __APPLE__ ) || ( defined( __MWERKS__ ) && defined( macintosh ) )
28 /* No Carbon frameworks for 64bit 10.4.x. */
29 /* `AvailabilityMacros.h` is available since Mac OS X 10.2, */
30 /* so guess the system version by maximum errno before inclusion. */
32 #ifdef ECANCELED /* defined since 10.2 */
33 #include "AvailabilityMacros.h"
35 #if defined( __LP64__ ) && \
36 ( MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 )
40 #elif defined( __SC__ ) || defined( __MRC__ )
41 /* Classic MacOS compilers */
42 #include "ConditionalMacros.h"
44 #define FT_MACINTOSH 1
47 #endif /* Mac support */
49 #endif /* FREETYPE_CONFIG_MAC_SUPPORT_H_ */