diff --git a/errors.go b/errors.go index 4a2b846..02a4d22 100644 --- a/errors.go +++ b/errors.go @@ -165,8 +165,3 @@ func PyErr_CheckSignals() int { func PyErr_SetInterrupt() { C.PyErr_SetInterrupt() } - -//PySignal_SetWakeupFd : https://docs.python.org/3/c-api/exceptions.html#c.PySignal_SetWakeupFd -func PySignal_SetWakeupFd(fd uintptr) uintptr { - return uintptr(C.PySignal_SetWakeupFd(C.int(fd))) -} diff --git a/errors_nix.go b/errors_nix.go new file mode 100644 index 0000000..1faea5a --- /dev/null +++ b/errors_nix.go @@ -0,0 +1,18 @@ +// Unless explicitly stated otherwise all files in this repository are licensed +// under $license_for_repo License. +// This product includes software developed at Datadog (https://www.datadoghq.com/). +// Copyright 2018 Datadog, Inc. + +// +build !windows + +package python3 + +/* +#include "Python.h" +*/ +import "C" + +//PySignal_SetWakeupFd : https://docs.python.org/3/c-api/exceptions.html#c.PySignal_SetWakeupFd +func PySignal_SetWakeupFd(fd uintptr) uintptr { + return uintptr(C.PySignal_SetWakeupFd(C.int(fd))) +}