autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confirmation my method is right.


From: Peter Johansson
Subject: Re: Confirmation my method is right.
Date: Tue, 28 Sep 2010 19:46:13 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

 Hi Dave,

On 9/28/10 10:22 AM, Dr. David Kirkby wrote:

AC_CHECK_DECLS(fprnd_t,,,[#include <float.h>])


2) I need to add in a C file which will need this declaration.

#infdef HAVE_DECL_FPRND_T
typedef unsigned short fprnd_t;
#endif



According the documentation
http://www.gnu.org/software/autoconf/manual/autoconf.html#Generic-Declarations
AC_CHECK_DECL defines HAVE_DECL_FPRND_T to either '0' or '1', which implies the #ifndef above is useless. You need something like

#if !HAVE_DECL_FPRND_T
typedef unsigned short fprnd_t;
#endif

Thanks,
Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]