Update clipboard and add CYGWIN

This commit is contained in:
vcaesar 2017-09-24 13:07:37 +08:00
parent 255e47b376
commit 5a80dd3332
3 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@
#endif /* IS_MACOSX */ #endif /* IS_MACOSX */
#if !defined(IS_WINDOWS) && (defined(WIN32) || defined(_WIN32) || \ #if !defined(IS_WINDOWS) && (defined(WIN32) || defined(_WIN32) || \
defined(__WIN32__) || defined(__WINDOWS__)) defined(__WIN32__) || defined(__WINDOWS__) || defined(__CYGWIN__))
#define IS_WINDOWS #define IS_WINDOWS
#endif /* IS_WINDOWS */ #endif /* IS_WINDOWS */

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build freebsd linux netbsd openbsd solaris // +build freebsd linux netbsd openbsd solaris dragonfly
package clipboard package clipboard

View File

@ -14,6 +14,7 @@ func Example() {
} else { } else {
if text != "" { if text != "" {
fmt.Println(text) fmt.Println(text)
// Output: // Output:
// 日本語 // 日本語
} }