summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-14 18:58:20 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-14 18:58:20 (GMT)
commit524f59a75aab742a5ce54b6497bec8e3bda8dced (patch)
tree7d066c5e714c648fcafc6c38bd2f537098ef36ab /generic
parent83042abf39211173167e01577444d8b0df973678 (diff)
downloadtk-524f59a75aab742a5ce54b6497bec8e3bda8dced.zip
tk-524f59a75aab742a5ce54b6497bec8e3bda8dced.tar.gz
tk-524f59a75aab742a5ce54b6497bec8e3bda8dced.tar.bz2
fix some visual studio warnings, eliminate some ANSI_ARGS
Diffstat (limited to 'generic')
-rw-r--r--generic/tkIntPlatDecls.h2
-rw-r--r--generic/tkStubInit.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/generic/tkIntPlatDecls.h b/generic/tkIntPlatDecls.h
index dd1e899..a2006d9 100644
--- a/generic/tkIntPlatDecls.h
+++ b/generic/tkIntPlatDecls.h
@@ -488,7 +488,7 @@ typedef struct TkIntPlatStubs {
int (*tkWinGetPlatformId) _ANSI_ARGS_((void)); /* 33 */
void (*tkWinSetHINSTANCE) _ANSI_ARGS_((HINSTANCE hInstance)); /* 34 */
int (*tkWinGetPlatformTheme) _ANSI_ARGS_((void)); /* 35 */
- LRESULT __stdcall (*tkWinChildProc) _ANSI_ARGS_((HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)); /* 36 */
+ LRESULT (__stdcall *tkWinChildProc) _ANSI_ARGS_((HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)); /* 36 */
void (*tkCreateXEventSource) _ANSI_ARGS_((void)); /* 37 */
void (*tkFreeWindowId) _ANSI_ARGS_((TkDisplay *dispPtr, Window w)); /* 38 */
void (*tkInitXId) _ANSI_ARGS_((TkDisplay *dispPtr)); /* 39 */
diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c
index 01bda9e..ffa8c2b 100644
--- a/generic/tkStubInit.c
+++ b/generic/tkStubInit.c
@@ -54,17 +54,17 @@ doNothing(void)
# undef TkpCmapStressed
# undef TkpSync
-# define TkCreateXEventSource (void (*) ()) doNothing
-# define TkFreeWindowId (void (*) _ANSI_ARGS_((TkDisplay *, Window))) doNothing
-# define TkInitXId (void (*) _ANSI_ARGS_((TkDisplay *))) doNothing
-# define TkpCmapStressed (int (*) _ANSI_ARGS_((Tk_Window, Colormap))) doNothing
-# define TkpSync (void (*) _ANSI_ARGS_((TkDisplay *))) doNothing
+# define TkCreateXEventSource (void (*) (void)) doNothing
+# define TkFreeWindowId (void (*) (TkDisplay *, Window)) doNothing
+# define TkInitXId (void (*) (TkDisplay *)) doNothing
+# define TkpCmapStressed (int (*) (Tk_Window, Colormap)) doNothing
+# define TkpSync (void (*) (Display *)) doNothing
# define TkUnixContainerId 0
# define TkUnixDoOneXEvent 0
# define TkUnixSetMenubar 0
-# define TkWmCleanup (void (*) _ANSI_ARGS_((TkDisplay *))) doNothing
-# define TkSendCleanup (void (*) _ANSI_ARGS_((TkDisplay *))) doNothing
-# define TkFreeXId (void (*) _ANSI_ARGS_((TkDisplay *))) doNothing
+# define TkWmCleanup (void (*) (TkDisplay *)) doNothing
+# define TkSendCleanup (void (*) (TkDisplay *)) doNothing
+# define TkFreeXId (void (*) (TkDisplay *)) doNothing
#else
/*