|
|
|||
File indexing completed on 2026-07-25 09:15:10
0001 /**************************************************************************** 0002 * 0003 * config/mac-support.h 0004 * 0005 * Mac/OS X support configuration header. 0006 * 0007 * Copyright (C) 1996-2025 by 0008 * David Turner, Robert Wilhelm, and Werner Lemberg. 0009 * 0010 * This file is part of the FreeType project, and may only be used, 0011 * modified, and distributed under the terms of the FreeType project 0012 * license, LICENSE.TXT. By continuing to use, modify, or distribute 0013 * this file you indicate that you have read the license and 0014 * understand and accept it fully. 0015 * 0016 */ 0017 #ifndef FREETYPE_CONFIG_MAC_SUPPORT_H_ 0018 #define FREETYPE_CONFIG_MAC_SUPPORT_H_ 0019 0020 /************************************************************************** 0021 * 0022 * Mac support 0023 * 0024 * This is the only necessary change, so it is defined here instead 0025 * providing a new configuration file. 0026 */ 0027 #ifdef FT_MACINTOSH 0028 #if defined( __APPLE__ ) || ( defined( __MWERKS__ ) && defined( macintosh ) ) 0029 /* No Carbon frameworks for 64bit 10.4.x. */ 0030 /* `AvailabilityMacros.h` is available since Mac OS X 10.2, */ 0031 /* so guess the system version by maximum errno before inclusion. */ 0032 #include <errno.h> 0033 #ifdef ECANCELED /* defined since 10.2 */ 0034 #include "AvailabilityMacros.h" 0035 #endif 0036 #if defined( __LP64__ ) && \ 0037 ( MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 ) 0038 #undef FT_MACINTOSH 0039 #endif 0040 #endif /* __APPLE__ ... */ 0041 0042 #elif defined( __SC__ ) || defined( __MRC__ ) 0043 /* Classic MacOS compilers */ 0044 #include "ConditionalMacros.h" 0045 #if TARGET_OS_MAC 0046 #define FT_MACINTOSH 1 0047 #endif 0048 0049 #endif /* Mac support */ 0050 0051 #endif /* FREETYPE_CONFIG_MAC_SUPPORT_H_ */
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|