From owner-freebsd-bugs Thu Aug 15 06:27:22 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA07180 for bugs-outgoing; Thu, 15 Aug 1996 06:27:22 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA07168 for ; Thu, 15 Aug 1996 06:27:16 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id XAA07975; Thu, 15 Aug 1996 23:23:21 +1000 Date: Thu, 15 Aug 1996 23:23:21 +1000 From: Bruce Evans Message-Id: <199608151323.XAA07975@godzilla.zeta.org.au> To: bugs@FreeBSD.org, kientzle@netcom.com Subject: Re: Minor stdio.h fix Sender: owner-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >/usr/include/stdio.h currently has the following lines: >... >#include >#ifdef _BSD_SIZE_T_ >typedef _BSD_SIZE_T_ size_t; >#undef _BSD_SIZE_T_ >#endif >-------------------------------------------------------- >The #include of 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 stops this header from being compiled twice, and compiler optimizations related to this stop it from even being read twice. Bruce