Attachment "patch2" to
ticket [220842ff]
added by
dgp
2002-04-06 23:09:34.
*** generic/tk.h.orig Tue Apr 4 19:22:39 2000
--- generic/tk.h Tue Apr 4 19:27:21 2000
***************
*** 1306,1328 ****
#define Tk_Main(argc, argv, proc) \
Tk_MainEx(argc, argv, proc, Tcl_CreateInterp())
- char *Tk_InitStubs _ANSI_ARGS_((Tcl_Interp *interp, char *version, int exact));
-
- #ifndef USE_TK_STUBS
-
- #define Tk_InitStubs(interp, version, exact) \
- Tcl_PkgRequire(interp, "Tk", version, exact)
-
- #endif
-
- void Tk_InitImageArgs _ANSI_ARGS_((Tcl_Interp *interp, int argc, char ***argv));
-
- #if !defined(USE_TK_STUBS) || !defined(USE_OLD_IMAGE)
-
- #define Tk_InitImageArgs(interp, argc, argv) /**/
-
- #endif
-
/*
*--------------------------------------------------------------
--- 1306,1311 ----
***************
*** 1358,1366 ****
#include "tkDecls.h"
/*
! * Tcl commands exported by Tk:
*/
#endif /* RESOURCE_INCLUDED */
--- 1341,1364 ----
#include "tkDecls.h"
/*
! * These functions are not *implemented* by the tk library, so the storage
! * class is neither DLLEXPORT nor DLLIMPORT
*/
+ #undef TCL_STORAGE_CLASS
+ #define TCL_STORAGE_CLASS
+
+ EXTERN char *Tk_InitStubs _ANSI_ARGS_((Tcl_Interp *interp, char *version, int exact));
+
+ #ifndef USE_TK_STUBS
+ #define Tk_InitStubs(interp, version, exact) \
+ Tcl_PkgRequire(interp, "Tk", version, exact)
+ #endif
+
+ EXTERN void Tk_InitImageArgs _ANSI_ARGS_((Tcl_Interp *interp, int argc, char ***argv));
+ #if !defined(USE_TK_STUBS) || !defined(USE_OLD_IMAGE)
+ #define Tk_InitImageArgs(interp, argc, argv) /**/
+ #endif
#endif /* RESOURCE_INCLUDED */
*** generic/tkWindow.c.orig Tue Apr 4 19:28:06 2000
--- generic/tkWindow.c Tue Apr 4 19:29:17 2000
***************
*** 2954,2964 ****
--- 2954,2966 ----
goto done;
}
+ #ifndef __WIN32__
#ifdef Tk_InitStubs
#undef Tk_InitStubs
#endif
Tk_InitStubs(interp, TK_VERSION, 1);
+ #endif
/*
* Invoke platform-specific initialization.
*** win/Makefile.in.orig Tue Apr 4 19:29:48 2000
--- win/Makefile.in Tue Apr 4 19:30:46 2000
***************
*** 327,333 ****
tkUtil.$(OBJEXT) \
tkVisual.$(OBJEXT) \
tkStubInit.$(OBJEXT) \
- tkStubLib.$(OBJEXT) \
tkWindow.$(OBJEXT)
STUB_OBJS = \
--- 327,332 ----
*** win/makefile.vc.orig Tue Apr 4 19:29:53 2000
--- win/makefile.vc Tue Apr 4 19:30:26 2000
***************
*** 212,218 ****
$(TMPDIR)\tkUtil.obj \
$(TMPDIR)\tkVisual.obj \
$(TMPDIR)\tkStubInit.obj \
- $(TMPDIR)\tkStubLib.obj \
$(TMPDIR)\tkWindow.obj
TKSTUBOBJS = $(TMPDIR)\tkStubLib.obj \
--- 212,217 ----