From 9048177dc3bfd854b4e7b25d861b93f8ebd8e8d7 Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 4 Oct 2005 21:46:31 +0000 Subject: * macosx/tkMacOSXInt.h: add MODULE_SCOPE definition check for extension writers that access private headers on OS X and don't define it in configure. --- ChangeLog | 6 ++++++ macosx/tkMacOSXInt.h | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7e04300..d4cab6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-04 Jeff Hobbs + + * macosx/tkMacOSXInt.h: add MODULE_SCOPE definition check for + extension writers that access private headers on OS X and don't + define it in configure. + 2005-09-28 Don Porter * unix/tkUnixPort.h: Disabled inclusion of the private Tcl header diff --git a/macosx/tkMacOSXInt.h b/macosx/tkMacOSXInt.h index 38b9b29..81e8e72 100644 --- a/macosx/tkMacOSXInt.h +++ b/macosx/tkMacOSXInt.h @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXInt.h,v 1.8 2005/08/09 07:39:21 das Exp $ + * RCS: @(#) $Id: tkMacOSXInt.h,v 1.9 2005/10/04 21:46:31 hobbs Exp $ */ #ifndef _TKMACINT @@ -33,6 +33,14 @@ #include +/* + * Should be defined by configure, but some extensions may access + * this file without setting it. + */ +#ifndef MODULE_SCOPE +#define MODULE_SCOPE __private_extern__ +#endif + struct TkWindowPrivate { TkWindow *winPtr; /* Ptr to tk window or NULL if Pixmap */ CGrafPtr grafPtr; -- cgit v0.12