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:
parent
c719a0ecb3
commit
e63033e1d5
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user