mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
demo: kill warning on Windows #2062
This commit is contained in:
parent
1879ecbaff
commit
6d72fedca9
@ -41,7 +41,6 @@ typedef struct siginfo_t {
|
||||
} siginfo_t;
|
||||
// not declared in MSYS2 header files, but implemented...?
|
||||
int faccessat(int dirfd, const char *pathname, int mode, int flags);
|
||||
#define sigemptyset(s)
|
||||
#define sigset_t int
|
||||
#define nl_langinfo(x) "UTF-8"
|
||||
#define ppoll(w, x, y, z) WSAPoll((w), (x), (y))
|
||||
|
@ -489,11 +489,13 @@ scrub_stdplane(struct notcurses* nc){
|
||||
}
|
||||
|
||||
int main(int argc, char** argv){
|
||||
#ifndef __MINGW64__
|
||||
sigset_t sigmask;
|
||||
// ensure SIGWINCH is delivered only to a thread doing input
|
||||
sigemptyset(&sigmask);
|
||||
sigaddset(&sigmask, SIGWINCH);
|
||||
pthread_sigmask(SIG_BLOCK, &sigmask, NULL);
|
||||
#endif
|
||||
const char* spec;
|
||||
FILE* json = NULL; // emit JSON summary to this file? (-J)
|
||||
notcurses_options nopts = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user