diff options
Diffstat (limited to 'ext/tk')
-rw-r--r-- | ext/tk/stubs.h | 10 | ||||
-rw-r--r-- | ext/tk/tcltklib.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/tk/stubs.h b/ext/tk/stubs.h index 7c913fb393..b4a85dbd1f 100644 --- a/ext/tk/stubs.h +++ b/ext/tk/stubs.h @@ -1,15 +1,15 @@ #include <tcl.h> extern int ruby_open_tcl_dll(char *); -extern int ruby_open_tk_dll(); +extern int ruby_open_tk_dll(void); extern int ruby_open_tcltk_dll(char *); -extern int tcl_stubs_init_p(); -extern int tk_stubs_init_p(); +extern int tcl_stubs_init_p(void); +extern int tk_stubs_init_p(void); extern Tcl_Interp *ruby_tcl_create_ip_and_stubs_init(int*); -extern int ruby_tcl_stubs_init(); +extern int ruby_tcl_stubs_init(void); extern int ruby_tk_stubs_init(Tcl_Interp*); extern int ruby_tk_stubs_safeinit(Tcl_Interp*); -extern int ruby_tcltk_stubs(); +extern int ruby_tcltk_stubs(void); /* no error */ #define TCLTK_STUBS_OK (0) diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c index 239f07a77b..413a97de4f 100644 --- a/ext/tk/tcltklib.c +++ b/ext/tk/tcltklib.c @@ -21,7 +21,7 @@ #ifdef HAVE_RB_THREAD_CHECK_TRAP_PENDING static int rb_thread_critical; /* dummy */ -int rb_thread_check_trap_pending(); +int rb_thread_check_trap_pending(void); #else /* use rb_thread_critical on Ruby 1.8.x */ #include "rubysig.h" |