From e63033e1d54cc4d7aa6ccf08875e9a8a2f51970a Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sat, 25 Nov 2017 01:18:13 +1100 Subject: [PATCH] Include tcl.h via tcl_bx.h, not directly This fixes 'const char **' vs 'char **' compiler warnings. Additionally, tcl_bx.h always defines STDVAR and can be included without checking for WANT_TCL. --- dll/blowfish/blowfish.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/dll/blowfish/blowfish.h b/dll/blowfish/blowfish.h index 9adb995..b060aed 100644 --- a/dll/blowfish/blowfish.h +++ b/dll/blowfish/blowfish.h @@ -11,19 +11,12 @@ #include "output.h" #include "module.h" #include "hash2.h" +#include "tcl_bx.h" #include #include #include -#ifdef WANT_TCL -# include -# include "tcl_bx.h" - -#ifndef STDVAR -# define STDVAR (ClientData cd, Tcl_Interp *irp, int argc, char *argv[]) -#endif - #ifndef BADARGS #define BADARGS(nl,nh,example) \ if ((argc<(nl)) || (argc>(nh))) { \ @@ -33,8 +26,6 @@ } #endif /* BADARGS */ -#endif /* WANT_TCL */ - #define INIT_MODULE #include "modval.h"