From: Robert Pengelly Date: Wed, 19 Aug 2026 11:37:38 +0000 (+0100) Subject: Removed C90 limitations and NO_LONG_LONG related stuff as even MinGW on Windows 2000... X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=dosfstools.git Removed C90 limitations and NO_LONG_LONG related stuff as even MinGW on Windows 2000 works --- diff --git a/Makefile.unix b/Makefile.unix index 55b2bde..e5e3d43 100644 --- a/Makefile.unix +++ b/Makefile.unix @@ -5,7 +5,7 @@ SRCDIR ?= $(CURDIR) 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 diff --git a/Makefile.w32 b/Makefile.w32 index b1ac3ba..8c91737 100644 --- a/Makefile.w32 +++ b/Makefile.w32 @@ -5,7 +5,7 @@ SRCDIR ?= $(CURDIR) 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 diff --git a/mcopy.c b/mcopy.c index 2591225..ab579b2 100644 --- a/mcopy.c +++ b/mcopy.c @@ -8,7 +8,7 @@ #include #include -#if defined (_WIN32) +#if defined (_WIN32) # include # include #elif defined (__GNUC__) @@ -443,7 +443,7 @@ static void parse_args (int *pargc, char ***pargv, int optind) { /** Get a single character from the terminal. */ static char getch (void) { -#if defined(_WIN32) +#if defined (_WIN32) KEY_EVENT_RECORD keyevent; INPUT_RECORD irec; @@ -530,8 +530,6 @@ static char getch (void) { ioctl (0, FIONREAD, &nbbytes); /* 0 is STDIN */ } - -#endif key = (int) getchar (); @@ -643,6 +641,8 @@ static char getch (void) { } +#endif + } static int check_overwrite (const char *fn) {