summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--macosx/tclMacOSXBundle.c15
2 files changed, 17 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 222b1a7..541cd3d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,13 @@
+2010-04-04 Donal K. Fellows <dkf@users.sf.net>
+
+ * macosx/tclMacOSXBundle.c (OpenResourceMap): [Bug 2981528]: Only
+ define this function when HAVE_COREFOUNDATION is defined.
+
2010-04-02 Jan Nijtmans <nijtmans@users.sf.net>
* generic/tcl.decls (Tcl_LoadFile): Add missing "const" in signature,
* generic/tclIOUtil.c (Tcl_LoadFile): and some formatting fixes
- * generic/tclDecls.h (regenerated)
+ * generic/tclDecls.h: (regenerated)
2010-04-02 Donal K. Fellows <dkf@users.sf.net>
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
{