From: Mike Frysinger Date: Mon, 16 Nov 2009 23:06:02 -0500 Subject: [U-Boot] [PATCH v2] crc32: Impl. linux optimized crc32() In-Reply-To: <200911162302.00231.vapier@gentoo.org> References: <1258102325-23344-1-git-send-email-Joakim.Tjernlund@transmode.se> <200911162302.00231.vapier@gentoo.org> Message-ID: <200911162306.02745.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 16 November 2009 23:01:59 Mike Frysinger wrote: > On Friday 13 November 2009 03:52:05 Joakim Tjernlund wrote: > > --- a/lib_generic/crc32.c > > +++ b/lib_generic/crc32.c > > @@ -13,6 +13,8 @@ > > #else > > #include > > #endif > > +#include > > +#include > > the target system improvements are awesome, but this breaks cross-compiling > crc32 code for anything other than linux hosts (and even that is spotty). > > i'd suggest these changes > > @@ -10,10 +10,10 @@ > > #ifndef USE_HOSTCC /* Shut down "ANSI does not permit..." warnings */ > #include > +#include > #else > -#include > +#include > #endif > -#include > #include actually, now that i re-read what i put into compiler.h, even this header logic is more complex than it needs to be. you should be able to have it simply read #include #include -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20091116/9c250500/attachment.pgp