aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJoseph Watson <jwatson@genisyscu.org>2015-09-15 12:59:53 -0400
committerJoseph Watson <jwatson@genisyscu.org>2015-09-15 12:59:53 -0400
commitcff91fbf85bb4d33ad13fe624bcff872ba06ca92 (patch)
treeca4beb691dd74cbd35882b68f7eaf9cfbdbe0ecb
parentDon't panic if win.AddClipboardFormatListener fails (it's not supported on XP) (diff)
downloadwireguard-windows-cff91fbf85bb4d33ad13fe624bcff872ba06ca92.tar.xz
wireguard-windows-cff91fbf85bb4d33ad13fe624bcff872ba06ca92.zip
Add build tags to allow this library to be included in a cross platform program. This allows for several things:
1) Develop on something other then a windows box, and cross compile the program to target windows. 2) Develop a program that will run on the command line for any OS, but also have a gui when run on windows. 3) Use the walk library for the windows gui, and some other library for a gui on other platforms.
-rw-r--r--action.go2
-rw-r--r--actionlist.go2
-rw-r--r--application.go2
-rw-r--r--bitmap.go2
-rw-r--r--boxlayout.go2
-rw-r--r--brush.go2
-rw-r--r--button.go2
-rw-r--r--cancelevent.go2
-rw-r--r--canvas.go2
-rw-r--r--checkbox.go2
-rw-r--r--clipboard.go2
-rw-r--r--closeevent.go2
-rw-r--r--color.go2
-rw-r--r--combobox.go2
-rw-r--r--commondialogs.go2
-rw-r--r--composite.go2
-rw-r--r--condition.go2
-rw-r--r--container.go2
-rw-r--r--cursor.go2
-rw-r--r--customwidget.go2
-rw-r--r--databinding.go2
-rw-r--r--dateedit.go2
-rw-r--r--dialog.go2
-rw-r--r--error.go2
-rw-r--r--errorevent.go2
-rw-r--r--event.go2
-rw-r--r--font.go2
-rw-r--r--form.go2
-rw-r--r--gridlayout.go2
-rw-r--r--groupbox.go2
-rw-r--r--icon.go2
-rw-r--r--image.go2
-rw-r--r--imagelist.go2
-rw-r--r--imageview.go2
-rw-r--r--indexlist.go2
-rw-r--r--inifilesettings.go2
-rw-r--r--intevent.go2
-rw-r--r--keyboard.go2
-rw-r--r--keyevent.go2
-rw-r--r--label.go2
-rw-r--r--lineedit.go2
-rw-r--r--lineerrorpresenter.go2
-rw-r--r--listbox.go2
-rw-r--r--mainwindow.go2
-rw-r--r--maptablemodel.go2
-rw-r--r--menu.go2
-rw-r--r--messagebox.go2
-rw-r--r--metafile.go2
-rw-r--r--models.go2
-rw-r--r--mouseevent.go2
-rw-r--r--nonwin.go7
-rw-r--r--notifyicon.go2
-rw-r--r--numberedit.go2
-rw-r--r--path.go2
-rw-r--r--pen.go2
-rw-r--r--point.go2
-rw-r--r--progressbar.go2
-rw-r--r--progressindicator.go2
-rw-r--r--property.go2
-rw-r--r--pushbutton.go2
-rw-r--r--radiobutton.go2
-rw-r--r--rectangle.go2
-rw-r--r--reflectmodels.go2
-rw-r--r--registry.go2
-rw-r--r--scrollview.go2
-rw-r--r--simpletypes.go2
-rw-r--r--size.go2
-rw-r--r--spacer.go2
-rw-r--r--splitter.go2
-rw-r--r--splitterhandle.go2
-rw-r--r--splitterlayout.go2
-rw-r--r--statusbar.go2
-rw-r--r--tableview.go2
-rw-r--r--tableviewcolumn.go2
-rw-r--r--tableviewcolumnlist.go2
-rw-r--r--tabpage.go2
-rw-r--r--tabpagelist.go2
-rw-r--r--tabwidget.go2
-rw-r--r--textedit.go2
-rw-r--r--toolbar.go2
-rw-r--r--toolbutton.go2
-rw-r--r--tooltip.go2
-rw-r--r--treeitemevent.go2
-rw-r--r--treeview.go2
-rw-r--r--util.go2
-rw-r--r--validators.go2
-rw-r--r--walk.go2
-rw-r--r--webview.go2
-rw-r--r--webview_dwebbrowserevents2.go2
-rw-r--r--webview_idochostuihandler.go2
-rw-r--r--webview_ioleclientsite.go2
-rw-r--r--webview_ioleinplaceframe.go2
-rw-r--r--webview_ioleinplacesite.go2
-rw-r--r--widget.go2
-rw-r--r--widgetlist.go2
-rw-r--r--window.go2
96 files changed, 197 insertions, 0 deletions
diff --git a/action.go b/action.go
index 9ba72960..cca9c269 100644
--- a/action.go
+++ b/action.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type actionChangedHandler interface {
diff --git a/actionlist.go b/actionlist.go
index 694a227d..c15880eb 100644
--- a/actionlist.go
+++ b/actionlist.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type actionListObserver interface {
diff --git a/application.go b/application.go
index 84409951..917cf0ee 100644
--- a/application.go
+++ b/application.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/bitmap.go b/bitmap.go
index 002e1cd6..44b9c1f4 100644
--- a/bitmap.go
+++ b/bitmap.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/boxlayout.go b/boxlayout.go
index 71c66090..4b98f4a7 100644
--- a/boxlayout.go
+++ b/boxlayout.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/brush.go b/brush.go
index 8cba0fb4..31ea8512 100644
--- a/brush.go
+++ b/brush.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/button.go b/button.go
index 20a37b74..45f86791 100644
--- a/button.go
+++ b/button.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/cancelevent.go b/cancelevent.go
index aaffc2aa..a1502317 100644
--- a/cancelevent.go
+++ b/cancelevent.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type CancelEventHandler func(canceled *bool)
diff --git a/canvas.go b/canvas.go
index c3a74ae0..8853e45b 100644
--- a/canvas.go
+++ b/canvas.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/checkbox.go b/checkbox.go
index 750be117..36280b9e 100644
--- a/checkbox.go
+++ b/checkbox.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/clipboard.go b/clipboard.go
index f49e2339..fd5b16b6 100644
--- a/clipboard.go
+++ b/clipboard.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/closeevent.go b/closeevent.go
index 885dd2f4..284fc046 100644
--- a/closeevent.go
+++ b/closeevent.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type CloseEventHandler func(canceled *bool, reason CloseReason)
diff --git a/color.go b/color.go
index cb25efa4..7c78a93f 100644
--- a/color.go
+++ b/color.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type Color uint32
diff --git a/combobox.go b/combobox.go
index 1ceb2541..4c50aa05 100644
--- a/combobox.go
+++ b/combobox.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/commondialogs.go b/commondialogs.go
index 6bad0e28..aeaa1e59 100644
--- a/commondialogs.go
+++ b/commondialogs.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/composite.go b/composite.go
index 7b319890..e3c9da6c 100644
--- a/composite.go
+++ b/composite.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/condition.go b/condition.go
index 622e8d5a..c0415b25 100644
--- a/condition.go
+++ b/condition.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type Condition interface {
diff --git a/container.go b/container.go
index 68a99329..6915e6a9 100644
--- a/container.go
+++ b/container.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/cursor.go b/cursor.go
index fb292c42..abed1a88 100644
--- a/cursor.go
+++ b/cursor.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/customwidget.go b/customwidget.go
index 2e5ec225..d93d1ac1 100644
--- a/customwidget.go
+++ b/customwidget.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/databinding.go b/databinding.go
index 74e49f6a..1162eb2a 100644
--- a/databinding.go
+++ b/databinding.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/dateedit.go b/dateedit.go
index 22a121af..7fcbab04 100644
--- a/dateedit.go
+++ b/dateedit.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/dialog.go b/dialog.go
index 3b5d9af4..59e0eaa1 100644
--- a/dialog.go
+++ b/dialog.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/error.go b/error.go
index ededfe78..656ddedb 100644
--- a/error.go
+++ b/error.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/errorevent.go b/errorevent.go
index f84013e8..8481f7df 100644
--- a/errorevent.go
+++ b/errorevent.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type ErrorEventHandler func(err error)
diff --git a/event.go b/event.go
index 148fd16c..05902df3 100644
--- a/event.go
+++ b/event.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type EventHandler func()
diff --git a/font.go b/font.go
index 059752cf..7df92491 100644
--- a/font.go
+++ b/font.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/form.go b/form.go
index d0e0d586..0a1ff4fb 100644
--- a/form.go
+++ b/form.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/gridlayout.go b/gridlayout.go
index 55438bf9..e57678c3 100644
--- a/gridlayout.go
+++ b/gridlayout.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/groupbox.go b/groupbox.go
index bcc4d251..d49850e4 100644
--- a/groupbox.go
+++ b/groupbox.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/icon.go b/icon.go
index b1a30a39..e7377c75 100644
--- a/icon.go
+++ b/icon.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/image.go b/image.go
index a5bcd2eb..90b73729 100644
--- a/image.go
+++ b/image.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/imagelist.go b/imagelist.go
index c08ef319..a23bb6c6 100644
--- a/imagelist.go
+++ b/imagelist.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/imageview.go b/imageview.go
index 86d4dfd5..5c6784a5 100644
--- a/imageview.go
+++ b/imageview.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type ImageView struct {
diff --git a/indexlist.go b/indexlist.go
index 9ec04d33..f017ba75 100644
--- a/indexlist.go
+++ b/indexlist.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type IndexList struct {
diff --git a/inifilesettings.go b/inifilesettings.go
index aeb5ea11..e792ff4d 100644
--- a/inifilesettings.go
+++ b/inifilesettings.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/intevent.go b/intevent.go
index 7707ba80..8670d5b0 100644
--- a/intevent.go
+++ b/intevent.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type IntEventHandler func(n int)
diff --git a/keyboard.go b/keyboard.go
index cba6a2c2..646864d5 100644
--- a/keyboard.go
+++ b/keyboard.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/keyevent.go b/keyevent.go
index ffee51a3..943dd2cc 100644
--- a/keyevent.go
+++ b/keyevent.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type KeyEventHandler func(key Key)
diff --git a/label.go b/label.go
index 7a41f577..469f9b90 100644
--- a/label.go
+++ b/label.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/lineedit.go b/lineedit.go
index 78f2673a..758d4d80 100644
--- a/lineedit.go
+++ b/lineedit.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/lineerrorpresenter.go b/lineerrorpresenter.go
index 1ebed439..31f3225b 100644
--- a/lineerrorpresenter.go
+++ b/lineerrorpresenter.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/listbox.go b/listbox.go
index 56f62405..c0a4af26 100644
--- a/listbox.go
+++ b/listbox.go
@@ -2,6 +2,8 @@
// Use of lb source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/mainwindow.go b/mainwindow.go
index 7c47de38..dbba14a6 100644
--- a/mainwindow.go
+++ b/mainwindow.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/maptablemodel.go b/maptablemodel.go
index 676d1f03..ae31237d 100644
--- a/maptablemodel.go
+++ b/maptablemodel.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/menu.go b/menu.go
index 85c5cf63..d1c3189d 100644
--- a/menu.go
+++ b/menu.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/messagebox.go b/messagebox.go
index 4de598dc..38628d69 100644
--- a/messagebox.go
+++ b/messagebox.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/metafile.go b/metafile.go
index 3acb348a..5d3104dc 100644
--- a/metafile.go
+++ b/metafile.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/models.go b/models.go
index 03139742..23918ef5 100644
--- a/models.go
+++ b/models.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
// BindingValueProvider is the interface that a model must implement to support
diff --git a/mouseevent.go b/mouseevent.go
index b187c4d7..f8abbd80 100644
--- a/mouseevent.go
+++ b/mouseevent.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type MouseButton int
diff --git a/nonwin.go b/nonwin.go
new file mode 100644
index 00000000..0dce1fc9
--- /dev/null
+++ b/nonwin.go
@@ -0,0 +1,7 @@
+// Copyright 2010 The win Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build !windows
+
+package walk
diff --git a/notifyicon.go b/notifyicon.go
index 5cdbbaa8..fe4ef8bf 100644
--- a/notifyicon.go
+++ b/notifyicon.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/numberedit.go b/numberedit.go
index fb93b724..a48b4ea2 100644
--- a/numberedit.go
+++ b/numberedit.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/path.go b/path.go
index c366fafd..a9a0d333 100644
--- a/path.go
+++ b/path.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/pen.go b/pen.go
index e518af5c..dbed66e1 100644
--- a/pen.go
+++ b/pen.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/point.go b/point.go
index 578a55ea..3b515be8 100644
--- a/point.go
+++ b/point.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type Point struct {
diff --git a/progressbar.go b/progressbar.go
index 8ce3128f..c01cb5a9 100644
--- a/progressbar.go
+++ b/progressbar.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/progressindicator.go b/progressindicator.go
index b3d54483..f0af4884 100644
--- a/progressindicator.go
+++ b/progressindicator.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/property.go b/property.go
index 56620024..e352b35f 100644
--- a/property.go
+++ b/property.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/pushbutton.go b/pushbutton.go
index 07f58a16..0f726dd9 100644
--- a/pushbutton.go
+++ b/pushbutton.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/radiobutton.go b/radiobutton.go
index 7cb37791..db729e1e 100644
--- a/radiobutton.go
+++ b/radiobutton.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/rectangle.go b/rectangle.go
index fef93b69..50171655 100644
--- a/rectangle.go
+++ b/rectangle.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/reflectmodels.go b/reflectmodels.go
index fbf4fa93..d140f24f 100644
--- a/reflectmodels.go
+++ b/reflectmodels.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/registry.go b/registry.go
index 674968b7..73357cde 100644
--- a/registry.go
+++ b/registry.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/scrollview.go b/scrollview.go
index 87f1529b..afc1d81b 100644
--- a/scrollview.go
+++ b/scrollview.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/simpletypes.go b/simpletypes.go
index e0e1d0ee..af7c0353 100644
--- a/simpletypes.go
+++ b/simpletypes.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type Alignment1D uint
diff --git a/size.go b/size.go
index dfccf6a1..d6fc279c 100644
--- a/size.go
+++ b/size.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type Size struct {
diff --git a/spacer.go b/spacer.go
index 1d444189..83e25978 100644
--- a/spacer.go
+++ b/spacer.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
const spacerWindowClass = `\o/ Walk_Spacer_Class \o/`
diff --git a/splitter.go b/splitter.go
index e90f0477..72f40c03 100644
--- a/splitter.go
+++ b/splitter.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/splitterhandle.go b/splitterhandle.go
index 35cce1c5..176eb616 100644
--- a/splitterhandle.go
+++ b/splitterhandle.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/splitterlayout.go b/splitterlayout.go
index 9d07fad7..d568c01c 100644
--- a/splitterlayout.go
+++ b/splitterlayout.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/statusbar.go b/statusbar.go
index 1baf15c5..c9fb649b 100644
--- a/statusbar.go
+++ b/statusbar.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/tableview.go b/tableview.go
index 4f216736..6fe69a50 100644
--- a/tableview.go
+++ b/tableview.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/tableviewcolumn.go b/tableviewcolumn.go
index fcf70ed3..4e654e2c 100644
--- a/tableviewcolumn.go
+++ b/tableviewcolumn.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/tableviewcolumnlist.go b/tableviewcolumnlist.go
index caf206e8..16e3d1c8 100644
--- a/tableviewcolumnlist.go
+++ b/tableviewcolumnlist.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type TableViewColumnList struct {
diff --git a/tabpage.go b/tabpage.go
index 276325ce..6e65c278 100644
--- a/tabpage.go
+++ b/tabpage.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/tabpagelist.go b/tabpagelist.go
index e35b4242..b425b301 100644
--- a/tabpagelist.go
+++ b/tabpagelist.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/tabwidget.go b/tabwidget.go
index 12b62ebf..7f695162 100644
--- a/tabwidget.go
+++ b/tabwidget.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/textedit.go b/textedit.go
index aa669e89..1f41a70a 100644
--- a/textedit.go
+++ b/textedit.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/toolbar.go b/toolbar.go
index a799e1b7..ac16caad 100644
--- a/toolbar.go
+++ b/toolbar.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/toolbutton.go b/toolbutton.go
index 1ad3db24..d15ae325 100644
--- a/toolbutton.go
+++ b/toolbutton.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/tooltip.go b/tooltip.go
index 21135d32..00af7c9a 100644
--- a/tooltip.go
+++ b/tooltip.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/treeitemevent.go b/treeitemevent.go
index 4982847a..ef2a320e 100644
--- a/treeitemevent.go
+++ b/treeitemevent.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
type TreeItemEventHandler func(item TreeItem)
diff --git a/treeview.go b/treeview.go
index 16e40486..c963f5af 100644
--- a/treeview.go
+++ b/treeview.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/util.go b/util.go
index f464bcb1..c2ee2b61 100644
--- a/util.go
+++ b/util.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/validators.go b/validators.go
index 8b289c71..c55622f8 100644
--- a/validators.go
+++ b/validators.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/walk.go b/walk.go
index 13ff78fc..9e5981d6 100644
--- a/walk.go
+++ b/walk.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
func LogErrors() bool {
diff --git a/webview.go b/webview.go
index abb99dca..b9c8e4ec 100644
--- a/webview.go
+++ b/webview.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/webview_dwebbrowserevents2.go b/webview_dwebbrowserevents2.go
index 1cc6bdbb..d01b057d 100644
--- a/webview_dwebbrowserevents2.go
+++ b/webview_dwebbrowserevents2.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/webview_idochostuihandler.go b/webview_idochostuihandler.go
index 1c5220c2..e67d9242 100644
--- a/webview_idochostuihandler.go
+++ b/webview_idochostuihandler.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/webview_ioleclientsite.go b/webview_ioleclientsite.go
index cb95f861..0bfea3c5 100644
--- a/webview_ioleclientsite.go
+++ b/webview_ioleclientsite.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/webview_ioleinplaceframe.go b/webview_ioleinplaceframe.go
index a4eebc85..e5685571 100644
--- a/webview_ioleinplaceframe.go
+++ b/webview_ioleinplaceframe.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/webview_ioleinplacesite.go b/webview_ioleinplacesite.go
index 163857e0..c6bfe8a1 100644
--- a/webview_ioleinplacesite.go
+++ b/webview_ioleinplacesite.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/widget.go b/widget.go
index e0976739..73087f25 100644
--- a/widget.go
+++ b/widget.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/widgetlist.go b/widgetlist.go
index 4d86acef..e2da0dc9 100644
--- a/widgetlist.go
+++ b/widgetlist.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (
diff --git a/window.go b/window.go
index a7f5940e..b38b7572 100644
--- a/window.go
+++ b/window.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build windows
+
package walk
import (