summaryrefslogtreecommitdiffstats
path: root/generic/tkStubLib.c
diff options
context:
space:
mode:
authorstanton <stanton@noemail.net>1999-05-25 01:31:05 (GMT)
committerstanton <stanton@noemail.net>1999-05-25 01:31:05 (GMT)
commit8d530fc045e74fb115eba5713492b220d4707f10 (patch)
tree1ab6959cba7bcd1a7b6f261967f5ab3ff7400179 /generic/tkStubLib.c
parent0b7c80cd353ecf90f4bfcfe4fde4c2fb7c46b02f (diff)
downloadtk-8d530fc045e74fb115eba5713492b220d4707f10.zip
tk-8d530fc045e74fb115eba5713492b220d4707f10.tar.gz
tk-8d530fc045e74fb115eba5713492b220d4707f10.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. FossilOrigin-Name: c6a2f31bd15c442e7af41c49a551dcb4193d15c2
Diffstat (limited to 'generic/tkStubLib.c')
-rw-r--r--generic/tkStubLib.c25
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;