summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXInt.h
diff options
context:
space:
mode:
authorhobbs <hobbs>2005-10-04 21:46:31 (GMT)
committerhobbs <hobbs>2005-10-04 21:46:31 (GMT)
commit440cc7e1303fe245a83684186494fdf558edc50a (patch)
tree01df5d3af086ef3bb97e660ebb69c2b86bbaa094 /macosx/tkMacOSXInt.h
parent622097600122713cfb837ef9d5dd7f2908d0ae66 (diff)
downloadtk-440cc7e1303fe245a83684186494fdf558edc50a.zip
tk-440cc7e1303fe245a83684186494fdf558edc50a.tar.gz
tk-440cc7e1303fe245a83684186494fdf558edc50a.tar.bz2
* 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.
Diffstat (limited to 'macosx/tkMacOSXInt.h')
-rw-r--r--macosx/tkMacOSXInt.h10
1 files changed, 9 insertions, 1 deletions
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 <Carbon/Carbon.h>
+/*
+ * 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;