summaryrefslogtreecommitdiffstats
path: root/win/winMain.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/winMain.c')
-rw-r--r--win/winMain.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/win/winMain.c b/win/winMain.c
index b29d355..5abaeb3 100644
--- a/win/winMain.c
+++ b/win/winMain.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: winMain.c,v 1.32 2010/09/23 20:59:00 nijtmans Exp $
+ * RCS: @(#) $Id: winMain.c,v 1.33 2010/09/23 21:45:14 nijtmans Exp $
*/
/* TODO: This file does not compile in UNICODE mode.
@@ -20,9 +20,6 @@
#undef UNICODE
#undef _UNICODE
-/* Make sure this file is never compiled with Stubs! */
-#undef USE_TCL_STUBS
-#undef USE_TK_STUBS
#include "tk.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -95,7 +92,7 @@ _tWinMain(
int argc;
TCHAR *p;
- Tcl_SetPanicProc(WishPanic);
+ (Tcl_SetPanicProc)(WishPanic);
/*
* Create the console channels and install them as the standard channels.
@@ -164,7 +161,7 @@ int
Tcl_AppInit(
Tcl_Interp *interp) /* Interpreter for application. */
{
- if (Tcl_Init(interp) == TCL_ERROR) {
+ if ((Tcl_Init)(interp) == TCL_ERROR) {
goto error;
}
if (Tk_Init(interp) == TCL_ERROR) {
@@ -236,7 +233,7 @@ Tcl_AppInit(
error:
MessageBeep(MB_ICONEXCLAMATION);
- MessageBoxA(NULL, Tcl_GetStringResult(interp), "Error in Wish",
+ MessageBoxA(NULL, (Tcl_GetStringResult)(interp), "Error in Wish",
MB_ICONSTOP | MB_OK | MB_TASKMODAL | MB_SETFOREGROUND);
ExitProcess(1);
@@ -305,7 +302,7 @@ _tmain(
int argc,
TCHAR **argv)
{
- Tcl_SetPanicProc(WishPanic);
+ (Tcl_SetPanicProc)(WishPanic);
/*
* Set up the default locale to be standard "C" locale so parsing is