improved stddef.h fix for BSDI (was Re: gcc/ginclude/stddef.h fix for BSD/OS )

Shigeya Suzuki shigeya@foretune.co.jp
Mon Apr 27 02:02:00 GMT 1998


Would you please consider following (improved) patch to incorporated
into tree?

I modified to see _MACHINE_ANSI_H_ only on BSDI.

Shigeya Suzuki

------------------------------

*** stddef.h.FCS	Fri Dec 12 15:36:09 1997
--- stddef.h	Mon Apr 27 14:56:46 1998
***************
*** 284,290 ****
  
  /*  In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
      are already defined.  */
! #ifdef _ANSI_H_
  /*  The references to _GCC_PTRDIFF_T_, _GCC_SIZE_T_, and _GCC_WCHAR_T_
      are probably typos and should be removed before 2.8 is released.  */
  #ifdef _GCC_PTRDIFF_T_
--- 284,290 ----
  
  /*  In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
      are already defined.  */
! #if defined(_ANSI_H_) || (defined(__bsdi__) && defined(_MACHINE_ANSI_H_))
  /*  The references to _GCC_PTRDIFF_T_, _GCC_SIZE_T_, and _GCC_WCHAR_T_
      are probably typos and should be removed before 2.8 is released.  */
  #ifdef _GCC_PTRDIFF_T_
***************
*** 312,318 ****
  #undef _WCHAR_T_
  #undef _BSD_WCHAR_T_
  #endif
! #endif /* _ANSI_H_ */
  
  #endif /* __sys_stdtypes_h */
  
--- 312,318 ----
  #undef _WCHAR_T_
  #undef _BSD_WCHAR_T_
  #endif
! #endif /* _ANSI_H_ || ( __bsdi__ && _MACHINE_ANSI_H_ ) */
  
  #endif /* __sys_stdtypes_h */
  


My comment on this patch in previous mail:

>>>>> "shigeya" == Shigeya Suzuki <shigeya@foretune.co.jp> writes:

shigeya> Okay, Now I found why this has happend. 
shigeya> On egcs side, the define(__bsdi__) is no effect. But BSDI Don't define
shigeya> any of such staff, I kept this change since there are no harm.

shigeya> Now, one change I need following solve my problem. the _ANSI_H_ and
shigeya> _MACHINE_ANSI_H_ thing is inconsistent. see below.

shigeya> This change may affect other platform -- but I belive this is
shigeya> necessary change. Someone should checn other platform.

shigeya> With this change, I could rebuilt whole tree without problem.

shigeya> Shigeya Suzuki

shigeya> ------------------------------

<< OLD PATCH DELETED >>



More information about the Gcc-bugs mailing list