mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update clipboard and add CYGWIN
This commit is contained in:
parent
255e47b376
commit
5a80dd3332
@ -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 */
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ func Example() {
|
|||||||
} else {
|
} else {
|
||||||
if text != "" {
|
if text != "" {
|
||||||
fmt.Println(text)
|
fmt.Println(text)
|
||||||
|
|
||||||
// Output:
|
// Output:
|
||||||
// 日本語
|
// 日本語
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user