mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-23 19:46:56 -04:00
Make compile with MS-VC6
This commit is contained in:
parent
bfb183e5df
commit
f83e5b1501
22 changed files with 98 additions and 64 deletions
|
@ -347,26 +347,26 @@ EXPORT int Zint_Init (Tcl_Interp *interp)
|
|||
{
|
||||
/*------------------------------------------------------------------------*/
|
||||
#ifdef USE_TCL_STUBS
|
||||
if (Tcl_InitStubs(Interp, "8.1", 0) == NULL)
|
||||
if (Tcl_InitStubs(interp, "8.1", 0) == NULL)
|
||||
#else
|
||||
if (Tcl_PkgRequire(Interp, "Tcl", "8.1", 0) == NULL)
|
||||
if (Tcl_PkgRequire(interp, "Tcl", "8.1", 0) == NULL)
|
||||
#endif
|
||||
{
|
||||
return TCL_ERROR;
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
#ifdef USE_TK_STUBS
|
||||
if (Tk_InitStubs(Interp, "8.1", 0) == NULL)
|
||||
if (Tk_InitStubs(interp, "8.1", 0) == NULL)
|
||||
#else
|
||||
if (Tcl_PkgRequire(Interp, "Tk", "8.1", 0) == NULL)
|
||||
if (Tcl_PkgRequire(interp, "Tk", "8.1", 0) == NULL)
|
||||
#endif
|
||||
{
|
||||
return TCL_ERROR;
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
Tcl_CreateObjCommand(Interp, "zint", Zint, (ClientData)NULL,
|
||||
Tcl_CreateObjCommand(interp, "zint", Zint, (ClientData)NULL,
|
||||
(Tcl_CmdDeleteProc *)NULL);
|
||||
Tcl_PkgProvide (Interp, "zint", version_string);
|
||||
Tcl_PkgProvide (interp, "zint", version_string);
|
||||
/*------------------------------------------------------------------------*/
|
||||
return TCL_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue