From 6aef27ab97d8ce8c298c47121e46cca4386e346c Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Mon, 26 May 2003 12:58:41 +0000 Subject: [PATCH] Auto merged 2003/05/25 20:40:26+01:00 cantab.net!aia21 Add -fms-extensions when compiling with gcc-3.2+. (Logical change 1.136) --- ntfsprogs/Makefile.am | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ntfsprogs/Makefile.am b/ntfsprogs/Makefile.am index 38133918..4e561dcd 100644 --- a/ntfsprogs/Makefile.am +++ b/ntfsprogs/Makefile.am @@ -1,8 +1,15 @@ +# Later gcc require -fms-extensions to work. +if GCC_NEEDS_MS_EXTENSIONS +GCCflag = -fms-extensions +else +GCCflag = +endif + # Need this to enable 64-bit (device) file access functions and parameters. if DEBUG -AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall -g -DDEBUG +AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall -g -DDEBUG $(GCCflag) else -AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall +AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall $(GCCflag) endif if REALLYSTATIC