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.
This commit is contained in:
Kevin Easton 2017-11-25 01:18:13 +11:00
parent c719a0ecb3
commit e63033e1d5

View File

@ -11,19 +11,12 @@
#include "output.h"
#include "module.h"
#include "hash2.h"
#include "tcl_bx.h"
#include <sys/time.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef WANT_TCL
# include <tcl.h>
# 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"