Make libgcrypt build with Clang on i386
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 21 Sep 2013 10:54:38 +0000 (13:54 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 26 Sep 2013 09:14:20 +0000 (12:14 +0300)
commitdb60d828137c4f3682ca4ca2a54fe3d96d3db5f9
tree16fb7ac48e4f55cca2d2ffbc59253ba6c470034d
parent1c6660debdbf1e4c3e80074c846a3e3097f214bb
Make libgcrypt build with Clang on i386

* cipher/longlong.h [__i386__] (add_ssaaaa, sub_ddmmss)
(umul_ppmm, udiv_qrnnd): Do not cast asm output to USItype.
--

Clang defines __GNUC__ even when it's not GCC compatible. As result Clang
enables GCC-only assembly code in mpi/longlong.h and fails to build.

However, since changes to make libgcrypt build with Clang are smallish, and
changes do not cause problems with GCC, patch just does them.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
mpi/longlong.h