From: Robert Pengelly Date: Wed, 19 Aug 2026 11:37:51 +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=e2fsprogs.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 b5028c0..f661f85 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 ifeq ($(OS), Windows_NT) all: mke2fs.exe e2md.exe e2cp.exe mke2nod.exe diff --git a/Makefile.w32 b/Makefile.w32 index c6a75f2..3580ebb 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 all: mke2fs.exe e2md.exe e2cp.exe mke2nod.exe diff --git a/e2cp.c b/e2cp.c index fe2c097..f854c05 100644 --- a/e2cp.c +++ b/e2cp.c @@ -448,11 +448,12 @@ static int walk_path (struct filesystem *fs, char *dirname) { # if defined (__CYGWIN__) # include # endif +#endif /** Get a single character from the terminal. */ static char getch (void) { -#if defined(_WIN32) +#if defined (_WIN32) KEY_EVENT_RECORD keyevent; INPUT_RECORD irec; @@ -539,8 +540,6 @@ static char getch (void) { ioctl (0, FIONREAD, &nbbytes); /* 0 is STDIN */ } - -#endif key = (int) getchar ();