Date: Mon, 9 Jul 2001 09:58:12 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Bruce Evans <bde@zeta.org.au> Cc: Harti Brandt <brandt@fokus.gmd.de>, arch@FreeBSD.ORG Subject: Re: -fno-builtin Message-ID: <20010709095812.A20489@dan.emsphone.com> In-Reply-To: <Pine.BSF.4.21.0107092242340.87868-100000@besplex.bde.org> References: <Pine.BSF.4.33.0107091420430.17758-100000@beagle.fokus.gmd.de> <Pine.BSF.4.21.0107092242340.87868-100000@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 09), Bruce Evans said: > len = strlen( > #ifdef FOO > "foo" > #else > "default" > #endif > ); > > This causes errors like: > > z.c:11: warning: preprocessing directive not recognized within macro arg > z.c:11: warning: preprocessing directive not recognized within macro arg > z.c:11: warning: preprocessing directive not recognized within macro arg > z.c: In function `main': > z.c:6: undefined or invalid # directive > z.c:8: undefined or invalid # directive > z.c:10: undefined or invalid # directive > > I only learned of this example a week or two ago. gcc-3.0 was > reported to make a very fundamental function (printf?) a macro. glibc, actually. Do a google search for "glibc printf macro" and you'll see a couple threads discussing it. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010709095812.A20489>