diff options
author | stanton <stanton> | 1999-05-25 01:31:05 (GMT) |
---|---|---|
committer | stanton <stanton> | 1999-05-25 01:31:05 (GMT) |
commit | f08249eab8beae6de80ce931756fe797851ec13c (patch) | |
tree | 1ab6959cba7bcd1a7b6f261967f5ab3ff7400179 /generic/tkStubLib.c | |
parent | eb02b7f4b5f03cf0252e0733efdebf890095f57c (diff) | |
download | tk-f08249eab8beae6de80ce931756fe797851ec13c.zip tk-f08249eab8beae6de80ce931756fe797851ec13c.tar.gz tk-f08249eab8beae6de80ce931756fe797851ec13c.tar.bz2 |
* generic/tkStubLib.c:
* generic/tkStubInit.c:
* generic/tkIntXlibDecls.h:
* generic/tkIntPlatDecls.h:
* generic/tkIntDecls.h:
* generic/tkInt.decls:
* generic/tkConsole.c: Various changes to try to get the Mac
builds working.
Diffstat (limited to 'generic/tkStubLib.c')
-rw-r--r-- | generic/tkStubLib.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/generic/tkStubLib.c b/generic/tkStubLib.c index 6584ca2..32ba177 100644 --- a/generic/tkStubLib.c +++ b/generic/tkStubLib.c @@ -10,17 +10,27 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkStubLib.c,v 1.4 1999/04/24 01:50:50 stanton Exp $ + * RCS: @(#) $Id: tkStubLib.c,v 1.5 1999/05/25 01:31:06 stanton Exp $ */ /* + * Because of problems with pre-compiled headers on the Mac, we need to + * do these includes before we add the stubs defines. This a hack. + */ + +#ifdef MAC_TCL +#include "tkMacInt.h" +#include "tkInt.h" +#include "tkPort.h" +#endif /* MAC_TCL */ + +/* * 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 * to build an extension that references Tk_InitStubs but doesn't end up * including the rest of the stub functions. */ - #ifndef USE_TCL_STUBS #define USE_TCL_STUBS #endif @@ -31,15 +41,16 @@ #endif #undef USE_TK_STUB_PROCS +#ifndef MAC_TCL + #include "tkPort.h" #include "tkInt.h" #ifdef __WIN32__ #include "tkWinInt.h" #endif -#ifdef MAC_TCL -#include "tkMacInt.h" -#endif + +#endif /* !MAC_TCL */ #include "tkDecls.h" #include "tkIntDecls.h" @@ -80,6 +91,10 @@ TkIntXlibStubs *tkIntXlibStubsPtr; *---------------------------------------------------------------------- */ +#ifdef Tk_InitStubs +#undef Tk_InitStubs +#endif + char * Tk_InitStubs(interp, version, exact) Tcl_Interp *interp; |