Message-Id: <199903092202.WAA52244@out2.ibm.net> From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Tue, 9 Mar 1999 17:02:13 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Patch to simplify cross-building of GCC In-reply-to: <199903091935.OAA01235@envy.delorie.com> X-mailer: Pegasus Mail for Win32 (v3.01d) Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > It seems we're letting egcs change the definition of our types. In > general, I'd rather not let it do that. Either the headers should be > fixed to remove bugs in the types (I don't believe there are any) or Then perhaps you would consider the patch below. It addresses the 'empty declaration' warnings generated when compiling Bash and other packages. Other headers would need adjustment too, of course. Instead of defining the __DJ_* macros to null after first use, it undefines them so the '#if defined' test, when applied to other headers using the __DJ_* macros, avoids defining a type twice and generating a warning about an empty declaration. *** include/stdio.h.orig Sun Nov 15 13:37:28 1998 --- include/stdio.h Tue Mar 9 16:46:10 1999 *************** *** 32,43 **** #define SEEK_CUR 1 #define SEEK_END 2 __DJ_va_list #undef __DJ_va_list ! #define __DJ_va_list __DJ_size_t #undef __DJ_size_t ! #define __DJ_size_t /* Note that the definitions of these fields are NOT guaranteed! They may change with any release without notice! The fact that they --- 32,45 ---- #define SEEK_CUR 1 #define SEEK_END 2 + #if defined (__DJ_va_list) __DJ_va_list #undef __DJ_va_list ! #endif ! #if defined (__DJ_size_t) __DJ_size_t #undef __DJ_size_t ! #endif /* Note that the definitions of these fields are NOT guaranteed! They may change with any release without notice! The fact that they --- Mark Elbrecht snowball3 AT usa DOT net http://members.xoom.com/snowball3/