summaryrefslogtreecommitdiff
path: root/builds/vms
diff options
context:
space:
mode:
authorsuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2011-05-29 01:33:34 +0900
committersuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2011-05-29 01:33:34 +0900
commitc32d54c94950fc086e5c6943313a3d31b4e0873d (patch)
tree06c73b0b65eac0d14f717b470685be0cee74fe70 /builds/vms
parent735e5abb7bbad8e74e56228176a7d93b345f071b (diff)
downloadfreetype2-c32d54c94950fc086e5c6943313a3d31b4e0873d.tar.gz
[mac] Conditionalize the inclusion of "AvailabilityMacros.h".
The native SDK on earliest Mac OS X (10.0-10.1) did not have "AvailabilityMacros.h". To prevent the inclusion of missing header file, ECANCELED (introduced in 10.2) in POSIX header file <errno.h> is checked to detect the system version. * include/freetype/config/ftconfig.h: Conditionalize the inclusion of "AvailabilityMacros.h". * builds/unix/ftconfig.in: Ditto. * builds/vms/ftconfig.h: Ditto.
Diffstat (limited to 'builds/vms')
-rw-r--r--builds/vms/ftconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/builds/vms/ftconfig.h b/builds/vms/ftconfig.h
index 1659d039e..49b60a2eb 100644
--- a/builds/vms/ftconfig.h
+++ b/builds/vms/ftconfig.h
@@ -102,7 +102,12 @@ FT_BEGIN_HEADER
#if ( defined( __APPLE__ ) && !defined( DARWIN_NO_CARBON ) ) || \
( defined( __MWERKS__ ) && defined( macintosh ) )
/* no Carbon frameworks for 64bit 10.4.x */
+ /* AvailabilityMacros.h was introduced since Mac OS X 10.2, */
+ /* so guess the system version by maximum errno before inclusion */
+#include <errno.h>
+#ifdef ECANCELED /* defined since 10.2 */
#include "AvailabilityMacros.h"
+#endif
#if defined( __LP64__ ) && \
( MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 )
#define DARWIN_NO_CARBON 1