1/****************************************************************************
2 *
3 * config/mac-support.h
4 *
5 * Mac/OS X support configuration header.
6 *
7 * Copyright (C) 1996-2021 by
8 * David Turner, Robert Wilhelm, and Werner Lemberg.
9 *
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.
15 *
16 */
17#ifndef FREETYPE_CONFIG_MAC_SUPPORT_H_
18#define FREETYPE_CONFIG_MAC_SUPPORT_H_
19
20 /**************************************************************************
21 *
22 * Mac support
23 *
24 * This is the only necessary change, so it is defined here instead
25 * providing a new configuration file.
26 */
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. */
31#include <errno.h>
32#ifdef ECANCELED /* defined since 10.2 */
33#include "AvailabilityMacros.h"
34#endif
35#if defined( __LP64__ ) && \
36 ( MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 )
37#undef FT_MACINTOSH
38#endif
39
40#elif defined( __SC__ ) || defined( __MRC__ )
41 /* Classic MacOS compilers */
42#include "ConditionalMacros.h"
43#if TARGET_OS_MAC
44#define FT_MACINTOSH 1
45#endif
46
47#endif /* Mac support */
48
49#endif /* FREETYPE_CONFIG_MAC_SUPPORT_H_ */
50

source code of include/freetype2/freetype/config/mac-support.h