From b174ed985c08abaec6e424b8c8e820a08f3ec047 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 17 Jul 2014 23:52:07 -0400 Subject: [PATCH] Added include guards to winapi_windows.h because of cgo including the file multiple times. --- redo/winapi_windows.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/redo/winapi_windows.h b/redo/winapi_windows.h index 3896c3b..71eb94e 100644 --- a/redo/winapi_windows.h +++ b/redo/winapi_windows.h @@ -1,5 +1,9 @@ /* 17 july 2014 */ +/* cgo will include this file multiple times */ +#ifndef __GO_UI_WINAPI_WINDOWS_H__ +#define __GO_UI_WINAPI_WINDOWS_H__ + #define UNICODE #define _UNICODE #define STRICT @@ -63,3 +67,5 @@ extern void getWindowText(HWND, WPARAM, LPCWSTR); extern void setWindowText(HWND, LPCWSTR); extern void updateWindow(HWND); extern void storelpParam(HWND, LPARAM); + +#endif