summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-02-18 00:43:41 -0500
committerPietro Gagliardi <[email protected]>2015-02-18 00:43:41 -0500
commit847e9bfd2caacba1c90ee68753d5652abe484501 (patch)
tree0e3ddb2941373dd9ea11b1a304fed749c9beb8a8
parent366460a46e981ea402067f2b96fd15226417e3db (diff)
Fixed Windows build. More TODOs. Still not working...
-rw-r--r--table_windows.go1
-rw-r--r--wininclude_windows.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/table_windows.go b/table_windows.go
index e2aecf1..1be54a6 100644
--- a/table_windows.go
+++ b/table_windows.go
@@ -48,6 +48,7 @@ func finishNewTable(b *tablebase, ty reflect.Type) Table {
}
colname := toUTF16(ty.Field(i).Name)
C.SendMessageW(t.hwnd, C.tableAddColumn, coltype, C.LPARAM(uintptr(unsafe.Pointer(colname))))
+ // TODO free colname
}
t.colcount = C.int(ty.NumField())
return t
diff --git a/wininclude_windows.h b/wininclude_windows.h
index 64e7caf..2a6c717 100644
--- a/wininclude_windows.h
+++ b/wininclude_windows.h
@@ -5,6 +5,8 @@
#define STRICT_TYPED_ITEMIDS
#define CINTERFACE
#define COBJMACROS
+// see https://github.com/golang/go/issues/9916#issuecomment-74812211
+#define INITGUID
// get Windows version right; right now Windows XP
#define WINVER 0x0501
#define _WIN32_WINNT 0x0501