mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
restore missing functions on windows
This commit is contained in:
parent
43c5ec01a5
commit
32e2e52d30
@ -7,8 +7,17 @@
|
||||
static void* _Atomic signal_nc = ATOMIC_VAR_INIT(NULL);
|
||||
|
||||
#ifdef __MINGW64__
|
||||
int block_signals(sigset_t* old_blocked_signals){
|
||||
(void)old_blocked_signals;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int unblock_signals(const sigset_t* old_blocked_signals){
|
||||
(void)old_blocked_signals;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int drop_signals(void* nc){
|
||||
int ret = -1;
|
||||
void* expected = nc;
|
||||
if(atomic_compare_exchange_strong(&signal_nc, &expected, nc)){
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user