Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 8531cec

Browse files
remicalixtehush-hush
authored andcommitted
Remove WakeupFd bindings for windows
1 parent eefd9db commit 8531cec

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

errors.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,3 @@ func PyErr_CheckSignals() int {
165165
func PyErr_SetInterrupt() {
166166
C.PyErr_SetInterrupt()
167167
}
168-
169-
//PySignal_SetWakeupFd : https://docs.python.org/3/c-api/exceptions.html#c.PySignal_SetWakeupFd
170-
func PySignal_SetWakeupFd(fd uintptr) uintptr {
171-
return uintptr(C.PySignal_SetWakeupFd(C.int(fd)))
172-
}

errors_nix.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Unless explicitly stated otherwise all files in this repository are licensed
2+
// under $license_for_repo License.
3+
// This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
// Copyright 2018 Datadog, Inc.
5+
6+
// +build !windows
7+
8+
package python3
9+
10+
/*
11+
#include "Python.h"
12+
*/
13+
import "C"
14+
15+
//PySignal_SetWakeupFd : https://docs.python.org/3/c-api/exceptions.html#c.PySignal_SetWakeupFd
16+
func PySignal_SetWakeupFd(fd uintptr) uintptr {
17+
return uintptr(C.PySignal_SetWakeupFd(C.int(fd)))
18+
}

0 commit comments

Comments
 (0)