From: Owen Shepherd Date: Mon, 7 Jan 2013 15:10:17 +0000 (+0000) Subject: win32: refer to errno, not _PDCLIB_errno X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=13f14269ba514ab75e522b1898a6e95454dfbb7e win32: refer to errno, not _PDCLIB_errno --- diff --git a/platform/win32/functions/signal/signal.c b/platform/win32/functions/signal/signal.c index e07877d..5045c8c 100644 --- a/platform/win32/functions/signal/signal.c +++ b/platform/win32/functions/signal/signal.c @@ -7,6 +7,7 @@ */ #include +#include #ifndef REGTEST @@ -56,7 +57,7 @@ void (*signal( int sig, void (*func)( int ) ) )( int ) /* The standard calls for an unspecified "positive value". You will probably want to define a specific value for this. */ - _PDCLIB_errno = 1; + errno = 1; return SIG_ERR; } return oldhandler;