Add #ifndef for Windows
This commit is contained in:
parent
6bee7ff30b
commit
461b15acb4
1 changed files with 2 additions and 0 deletions
|
|
@ -228,6 +228,7 @@ static int cli_check_secret(const char *source)
|
||||||
*/
|
*/
|
||||||
static int cli_quitting = false;
|
static int cli_quitting = false;
|
||||||
|
|
||||||
|
#ifndef WIN32
|
||||||
/**
|
/**
|
||||||
* Get next character from stdin, or EOF if got a SIGINT signal
|
* Get next character from stdin, or EOF if got a SIGINT signal
|
||||||
*/
|
*/
|
||||||
|
|
@ -246,6 +247,7 @@ static int interruptible_getc(void)
|
||||||
|
|
||||||
return r == 1 && !cli_quitting ? c : EOF;
|
return r == 1 && !cli_quitting ? c : EOF;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void cli::start()
|
void cli::start()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue