Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy