Date: Tue, 4 Aug 2009 02:26:34 -0300 From: "Carlos A. M. dos Santos" <unixmania@gmail.com> To: Alex Zimnitsky <aavzz@yandex.ru> Cc: freebsd-hackers@freebsd.org Subject: Re: sys/cdefs.h not included automatically Message-ID: <e71790db0908032226i4325eec8sb28586048d77a4fc@mail.gmail.com> In-Reply-To: <1249329403.2928.11.camel@localhost.localdomain> References: <1249329403.2928.11.camel@localhost.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 3, 2009 at 4:56 PM, Alex Zimnitsky<aavzz@yandex.ru> wrote: > Hello, freebsd-hackers > > my system is 7.2-RELEASE > > there is a <sys/cdefs.h> which is included in a lot of headers, but a > few of them instead of including it, generate "#error this file needs > sys/cdefs.h". > > seems like an omission, but if it's intentional I'm curious why it is > so. Those files are not intended to be directly included by user programs. You usually include them indirectly. See, for instance, pthread.h and stddef.h. -- My preferred quotation of Robert Louis Stevenson is "You cannot make an omelette without breaking eggs". Not because I like the omelettes, but because I like the sound of eggs being broken.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e71790db0908032226i4325eec8sb28586048d77a4fc>