From 5a80dd3332f856b603e496269892913be0b6b452 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sun, 24 Sep 2017 13:07:37 +0800 Subject: [PATCH] Update clipboard and add CYGWIN --- base/os.h | 2 +- clipboard/clipboard_unix.go | 2 +- clipboard/example_test.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/base/os.h b/base/os.h index 59860b8..ab46989 100644 --- a/base/os.h +++ b/base/os.h @@ -14,7 +14,7 @@ #endif /* IS_MACOSX */ #if !defined(IS_WINDOWS) && (defined(WIN32) || defined(_WIN32) || \ - defined(__WIN32__) || defined(__WINDOWS__)) + defined(__WIN32__) || defined(__WINDOWS__) || defined(__CYGWIN__)) #define IS_WINDOWS #endif /* IS_WINDOWS */ diff --git a/clipboard/clipboard_unix.go b/clipboard/clipboard_unix.go index e4010c5..b60fd22 100644 --- a/clipboard/clipboard_unix.go +++ b/clipboard/clipboard_unix.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build freebsd linux netbsd openbsd solaris +// +build freebsd linux netbsd openbsd solaris dragonfly package clipboard diff --git a/clipboard/example_test.go b/clipboard/example_test.go index b1947ae..527e819 100644 --- a/clipboard/example_test.go +++ b/clipboard/example_test.go @@ -14,6 +14,7 @@ func Example() { } else { if text != "" { fmt.Println(text) + // Output: // 日本語 }