Mailing List Archive

bug in src/gcrypt.h
There is a problem with src/gcrypt.h, in version 1.1.43

config.h actually checks for "inline". But gcrypt.h totally
ignores this, and hardcodes use of __inline__

This only works with gcc. It breaks other compilers.

[.but if you simply replace "__inline__" with "inline", it works
with the compiler *I* use, at least]


Please make use of autoconf, and have a gcrypt.h.in or something
Re: bug in src/gcrypt.h [ In reply to ]
On Wed, 22 Oct 2003 14:34:50 -0700, Philip Brown said:

> Please make use of autoconf, and have a gcrypt.h.in or something

That won't work if you are using a different compiler. I fixed it by
using GPG_ERR_INLINE which gets defined to __inline__ for gcc, inline
for C99 and nothing for other compilers. GPG_ERR_INLINE is available
because we rely on gpg-error.h anyway.

Thanks,

Werner

--
Werner Koch <wk@gnupg.org>
The GnuPG Experts http://g10code.com
Free Software Foundation Europe http://fsfeurope.org