diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2010-04-04 11:59:22 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2010-04-04 11:59:22 (GMT) |
| commit | ee24dec61761c3f1e72951e3f21b0f26648f52de (patch) | |
| tree | e0da4148eb91a29b39901cdfac0b8d8170c23195 /macosx/tclMacOSXBundle.c | |
| parent | a23c6165131e1ea4ecc6bdf9ce30eb4f94ab2da9 (diff) | |
| download | tcl-ee24dec61761c3f1e72951e3f21b0f26648f52de.zip tcl-ee24dec61761c3f1e72951e3f21b0f26648f52de.tar.gz tcl-ee24dec61761c3f1e72951e3f21b0f26648f52de.tar.bz2 | |
* macosx/tclMacOSXBundle.c (OpenResourceMap): [Bug 2981528]: Only
define this function when HAVE_COREFOUNDATION is defined.
Diffstat (limited to 'macosx/tclMacOSXBundle.c')
| -rw-r--r-- | macosx/tclMacOSXBundle.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/macosx/tclMacOSXBundle.c b/macosx/tclMacOSXBundle.c index 1748ee3..d7153fa 100644 --- a/macosx/tclMacOSXBundle.c +++ b/macosx/tclMacOSXBundle.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclMacOSXBundle.c,v 1.17 2010/03/25 14:02:11 dkf Exp $ + * RCS: @(#) $Id: tclMacOSXBundle.c,v 1.18 2010/04/04 11:59:23 dkf Exp $ */ #include "tclPort.h" @@ -72,13 +72,13 @@ MODULE_SCOPE long tclMacOSXDarwinRelease; #define TclLoadDbgMsg(m, ...) #endif /* TCL_DEBUG_LOAD */ -#endif /* HAVE_COREFOUNDATION */ - /* * Forward declaration of functions defined in this file: */ static short OpenResourceMap(CFBundleRef bundleRef); + +#endif /* HAVE_COREFOUNDATION */ /* *---------------------------------------------------------------------- @@ -93,6 +93,8 @@ static short OpenResourceMap(CFBundleRef bundleRef); *---------------------------------------------------------------------- */ +#ifdef HAVE_COREFOUNDATION + static short OpenResourceMap( CFBundleRef bundleRef) @@ -139,6 +141,8 @@ OpenResourceMap( } return -1; } + +#endif /* HAVE_COREFOUNDATION */ /* *---------------------------------------------------------------------- @@ -282,7 +286,10 @@ Tcl_MacOSXOpenVersionedBundleResources( } if (versionedBundleRef) { #if MAC_OS_X_VERSION_MIN_REQUIRED < 1050 - /* Workaround CFBundle bug in Tiger and earlier. [Bug 2569449] */ + /* + * Workaround CFBundle bug in Tiger and earlier. [Bug 2569449] + */ + if (tclMacOSXDarwinRelease >= 9) #endif { |
