diff options
author | nijtmans <nijtmans> | 2009-11-18 23:46:05 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2009-11-18 23:46:05 (GMT) |
commit | 5eff1a7b7ac12342c892b0c4e3f867dededec5cf (patch) | |
tree | 6938875528242df851eab59fa720c1395ee0f934 /unix/tclXtTest.c | |
parent | b57c08b7e2ccf91e1096b30f2170d2f603f59e0c (diff) | |
download | tcl-5eff1a7b7ac12342c892b0c4e3f867dededec5cf.zip tcl-5eff1a7b7ac12342c892b0c4e3f867dededec5cf.tar.gz tcl-5eff1a7b7ac12342c892b0c4e3f867dededec5cf.tar.bz2 |
Fix [Bug 2883850]: pkgIndex.tcl doesn't
get created with static Tcl build
Diffstat (limited to 'unix/tclXtTest.c')
-rw-r--r-- | unix/tclXtTest.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/unix/tclXtTest.c b/unix/tclXtTest.c index eb800fb..92f5b36 100644 --- a/unix/tclXtTest.c +++ b/unix/tclXtTest.c @@ -1,4 +1,4 @@ -/* +/* * tclXtTest.c -- * * Contains commands for Xt notifier specific tests on Unix. @@ -8,15 +8,30 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclXtTest.c,v 1.8 2009/01/09 11:21:46 dkf Exp $ + * RCS: @(#) $Id: tclXtTest.c,v 1.9 2009/11/18 23:46:05 nijtmans Exp $ */ +#ifndef USE_TCL_STUBS +# define USE_TCL_STUBS +#endif #include <X11/Intrinsic.h> #include "tcl.h" static int TesteventloopCmd(ClientData clientData, Tcl_Interp *interp, int argc, const char **argv); extern void InitNotifier(void); + +/* + * TCL_STORAGE_CLASS is set unconditionally to DLLEXPORT because the + * Tcltest_Init declaration is in the source file itself, which is only + * accessed when we are building a library. + */ + +#undef TCL_STORAGE_CLASS +#define TCL_STORAGE_CLASS DLLEXPORT +EXTERN int Tclxttest_Init(Tcl_Interp *interp); + + /* *---------------------------------------------------------------------- @@ -41,7 +56,7 @@ int Tclxttest_Init( Tcl_Interp *interp) /* Interpreter for application. */ { - if (Tcl_InitStubs(interp, TCL_VERSION, 0) == NULL) { + if (Tcl_InitStubs(interp, "8.1", 0) == NULL) { return TCL_ERROR; } XtToolkitInitialize(); |