From 489ce0a0538c81ab6a10efd4b97cce6299fc4d81 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 18 Jul 2014 00:29:15 -0400 Subject: Added #include "_cgo_export.h" to files that needed it and fixed a cast error in controls_windows.c that that revealed. Anyway buttons work now on all platforms, woo :D --- redo/controls_windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'redo/controls_windows.c') diff --git a/redo/controls_windows.c b/redo/controls_windows.c index 77cf758..64bf273 100644 --- a/redo/controls_windows.c +++ b/redo/controls_windows.c @@ -1,6 +1,7 @@ /* 17 july 2014 */ #include "winapi_windows.h" +#include "_cgo_export.h" HWND newWidget(LPCWSTR class, DWORD style, DWORD extstyle) { @@ -49,7 +50,7 @@ static LRESULT CALLBACK buttonSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA switch (uMsg) { case msgCOMMAND: if (HIWORD(wParam) == BN_CLICKED) { - buttonClicked(data); + buttonClicked((void *) data); return 0; } return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam); -- cgit v1.2.3