diff options
Diffstat (limited to 'tcl/unix/tclAppInit.c')
-rw-r--r-- | tcl/unix/tclAppInit.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/tcl/unix/tclAppInit.c b/tcl/unix/tclAppInit.c index dac0d66aa2e..047b6744137 100644 --- a/tcl/unix/tclAppInit.c +++ b/tcl/unix/tclAppInit.c @@ -16,15 +16,6 @@ #include "tcl.h" -/* - * The following variable is a special hack that is needed in order for - * Sun shared libraries to be used for Tcl. - */ - -extern int matherr(); -int *tclDummyMathPtr = (int *) matherr; - - #ifdef TCL_TEST #include "tclInt.h" @@ -177,8 +168,10 @@ Tcl_AppInit(interp) * then no user-specific startup file will be run under any conditions. */ +#ifdef DJGPP + Tcl_SetVar(interp, "tcl_rcFileName", "~/tclsh.rc", TCL_GLOBAL_ONLY); +#else Tcl_SetVar(interp, "tcl_rcFileName", "~/.tclshrc", TCL_GLOBAL_ONLY); +#endif return TCL_OK; } - - |