Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 1996 23:23:21 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bugs@FreeBSD.org, kientzle@netcom.com
Subject:   Re: Minor stdio.h fix
Message-ID:  <199608151323.XAA07975@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>/usr/include/stdio.h currently has the following lines:

>...
>#include <machine/ansi.h>
>#ifdef  _BSD_SIZE_T_
>typedef _BSD_SIZE_T_    size_t;
>#undef  _BSD_SIZE_T_
>#endif
>--------------------------------------------------------
>The #include of <machine/ansi.h> should be moved just before
>this section.  As it is currently, size_t is defined twice,
>since sys/types.h includes machine/ansi.h and defines size_t.

No, the above ifdef stops size_t from being defined twice.  Also,
the #ifndef _MACHINE_ANSI_H_ in <machine/ansi.h> stops this header
from being compiled twice, and compiler optimizations related to
this stop it from even being read twice.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608151323.XAA07975>