diff options
Diffstat (limited to 'tk/generic/tkStubLib.c')
-rw-r--r-- | tk/generic/tkStubLib.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tk/generic/tkStubLib.c b/tk/generic/tkStubLib.c index 7a9e7bd0d53..08868276d3f 100644 --- a/tk/generic/tkStubLib.c +++ b/tk/generic/tkStubLib.c @@ -13,6 +13,7 @@ * RCS: @(#) $Id$ */ + /* * We need to ensure that we use the stub macros so that this file contains * no references to any of the stub functions. This will make it possible @@ -20,7 +21,6 @@ * including the rest of the stub functions. */ - #ifndef USE_TCL_STUBS #define USE_TCL_STUBS #endif @@ -37,10 +37,15 @@ #ifdef __WIN32__ #include "tkWinInt.h" #endif + #ifdef MAC_TCL #include "tkMacInt.h" #endif +#ifdef MAC_OSX_TK +#include "tkMacOSXInt.h" +#endif + #include "tkDecls.h" #include "tkIntDecls.h" #include "tkPlatDecls.h" @@ -80,13 +85,17 @@ TkIntXlibStubs *tkIntXlibStubsPtr; *---------------------------------------------------------------------- */ -char * +#ifdef Tk_InitStubs +#undef Tk_InitStubs +#endif + +CONST char * Tk_InitStubs(interp, version, exact) Tcl_Interp *interp; char *version; int exact; { - char *actualVersion; + CONST char *actualVersion; actualVersion = Tcl_PkgRequireEx(interp, "Tk", version, exact, (ClientData *) &tkStubsPtr); |