VPATH := $(SRCDIR)
CC := gcc
-CFLAGS := -D_FILE_OFFSET_BITS=64 -Wall -Werror -Wextra -std=c90
+CFLAGS := -D_FILE_OFFSET_BITS=64 -Wall -Werror -Wextra
CSRC := common.c report.c write7x.c
VPATH := $(SRCDIR)
CC := gcc
-CFLAGS := -D_FILE_OFFSET_BITS=64 -Wall -Werror -Wextra -std=c90
+CFLAGS := -D_FILE_OFFSET_BITS=64 -Wall -Werror -Wextra
CSRC := common.c report.c write7x.c
#include <stdlib.h>
#include <string.h>
-#if defined (_WIN32)
+#if defined (_WIN32)
# include <windows.h>
# include <winioctl.h>
#elif defined (__GNUC__)
/** Get a single character from the terminal. */
static char getch (void) {
-#if defined(_WIN32)
+#if defined (_WIN32)
KEY_EVENT_RECORD keyevent;
INPUT_RECORD irec;
ioctl (0, FIONREAD, &nbbytes); /* 0 is STDIN */
}
-
-#endif
key = (int) getchar ();
}
+#endif
+
}
static int check_overwrite (const char *fn) {