sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
mac-support.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * config/mac-support.h
4 *
5 * Mac/OS X support configuration header.
6 *
7 * Copyright (C) 1996-2025 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 */
21#ifndef FREETYPE_CONFIG_MAC_SUPPORT_H_
22#define FREETYPE_CONFIG_MAC_SUPPORT_H_
23
24 /**************************************************************************
25 *
26 * Mac support
27 *
28 * This is the only necessary change, so it is defined here instead
29 * providing a new configuration file.
30 */
31#if defined( __APPLE__ ) || ( defined( __MWERKS__ ) && defined( macintosh ) )
32 /* No Carbon frameworks for 64bit 10.4.x. */
33 /* `AvailabilityMacros.h` is available since Mac OS X 10.2, */
34 /* so guess the system version by maximum errno before inclusion. */
35#include <errno.h>
36#ifdef ECANCELED /* defined since 10.2 */
37#include "AvailabilityMacros.h"
38#endif
39#if defined( __LP64__ ) && \
40 ( MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 )
41#undef FT_MACINTOSH
42#endif
43
44#elif defined( __SC__ ) || defined( __MRC__ )
45 /* Classic MacOS compilers */
46#include "ConditionalMacros.h"
47#if TARGET_OS_MAC
48#define FT_MACINTOSH 1
49#endif
50
51#endif /* Mac support */
52
53#endif /* FREETYPE_CONFIG_MAC_SUPPORT_H_ */