diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-18 00:29:15 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-18 00:29:15 -0400 |
| commit | 489ce0a0538c81ab6a10efd4b97cce6299fc4d81 (patch) | |
| tree | 8da3208df2ff10861df944c8b6d43707c29c4ac5 /redo/controls_windows.c | |
| parent | d2f09a02225281fbd30fe068f228ca0f3fd26471 (diff) | |
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
Diffstat (limited to 'redo/controls_windows.c')
| -rw-r--r-- | redo/controls_windows.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
