Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:35:45

0001 /****************************************************************************
0002  *
0003  * config/mac-support.h
0004  *
0005  *   Mac/OS X support configuration header.
0006  *
0007  * Copyright (C) 1996-2023 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 #if defined( __APPLE__ ) || ( defined( __MWERKS__ ) && defined( macintosh ) )
0028   /* No Carbon frameworks for 64bit 10.4.x.                         */
0029   /* `AvailabilityMacros.h` is available since Mac OS X 10.2,       */
0030   /* so guess the system version by maximum errno before inclusion. */
0031 #include <errno.h>
0032 #ifdef ECANCELED /* defined since 10.2 */
0033 #include "AvailabilityMacros.h"
0034 #endif
0035 #if defined( __LP64__ ) && \
0036     ( MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 )
0037 #undef FT_MACINTOSH
0038 #endif
0039 
0040 #elif defined( __SC__ ) || defined( __MRC__ )
0041   /* Classic MacOS compilers */
0042 #include "ConditionalMacros.h"
0043 #if TARGET_OS_MAC
0044 #define FT_MACINTOSH 1
0045 #endif
0046 
0047 #endif  /* Mac support */
0048 
0049 #endif  /* FREETYPE_CONFIG_MAC_SUPPORT_H_ */