Blt_TclInit() and Blt_TkInit() are declared only if USE_BLT_STUBS is defined
Brought to you by:
ghowlett
Hi!
Appears that Blt_TclInit() and Blt_TkInit() are declared in blt.h only if USE_BLT_STUBS is defined. As far as I understand, they should be called even if BLT stubs aren't in use (but say, Tcl/Tk stubs are used by BLT).
Please, consider the attached patch, which moves #endif higher and declares these init functions unconditionally.
Hi!
My patch seems to be incomplete. The way it is, including blt.h withou prior tcl.h leads to compile errors because Tcl_AppInitProc is undefined. This will break configure scripts which try to find blt.h by compiling simple files with #include <blt.h> in them. Here is one possible fix - included tcl.h inside blt.h.</blt.h>