Fix OS X build
This commit is contained in:
parent
f47face9a5
commit
0453507450
1 changed files with 3 additions and 1 deletions
4
main.cpp
4
main.cpp
|
@ -10,7 +10,9 @@
|
|||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define ANSI_COLOR_RED "\x1b[31m"
|
||||
#define ANSI_COLOR_GREEN "\x1b[32m"
|
||||
|
@ -955,7 +957,7 @@ int main(int argc, char ** argv) {
|
|||
bool another_line=true;
|
||||
while (another_line) {
|
||||
char buf[256] = {0};
|
||||
size_t n_read;
|
||||
int n_read;
|
||||
if(params.use_color) printf(ANSI_BOLD ANSI_COLOR_GREEN);
|
||||
scanf("%255[^\n]%n%*c", buf, &n_read);
|
||||
if(params.use_color) printf(ANSI_COLOR_RESET);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue