From: Sebastian Schuberth Date: Tue, 18 Aug 2009 16:23:58 GMT Subject: Re: [PATCH] block-sha1: Windows declares ntohl() in winsock2.h Message-ID: In-Reply-To: On Tue, Aug 18, 2009 at 18:08, Linus Torvalds wrote: >> I'd suggest not using a gcc builtin, since if you're using gcc you might >> as well just use inline asm that has been around forever (unlike the >> builtin). > > That seems to be what glibc does too. > > Here's a patch. Looks good to me, compiles & runs fine on Windows (with Hannes' patch also applied). -- Sebastian Schuberth