Date: Wed, 10 Apr 2002 02:18:32 -0700 From: "David O'Brien" <obrien@FreeBSD.org> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: current@FreeBSD.org Subject: Re: libkern/quad.h Message-ID: <20020410021832.A57790@dragon.nuxi.com> In-Reply-To: <200204091458.g39Ewg1T000574@Magelan.Leidinger.net>; from Alexander@Leidinger.net on Tue, Apr 09, 2002 at 04:58:42PM %2B0200 References: <200204091458.g39Ewg1T000574@Magelan.Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 09, 2002 at 04:58:42PM +0200, Alexander Leidinger wrote: > quad.h contains: > ---snip--- > /* > * XXX > * Compensate for gcc 1 vs gcc 2. Gcc 1 defines ?sh?di3's second argument > * as u_quad_t, while gcc 2 correctly uses int. Unfortunately, we still use > * both compilers. > */ > #if __GNUC__ >= 2 > typedef unsigned int qshift_t; > #else > typedef u_quad_t qshift_t; > #endif > ---snip--- > > Is this still valid? Does someone really use gcc 1 to compile FreeBSD? I assume your question stems from trying to use icc. Please wrap this bit [semi]-properly with: #ifdef __GNUC__ #if __GNUC__ >= 2 typedef unsigned int qshift_t; #else typedef u_quad_t qshift_t; #endif #endif You can then put a defintion for #ifdef __IC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020410021832.A57790>