Mail Archives: djgpp-workers/1999/03/09/17:04:47
> 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/
- Raw text -