[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unexpected frexpf implementation used by MSVC9 in C++ mode
From: |
Bruno Haible |
Subject: |
Re: Unexpected frexpf implementation used by MSVC9 in C++ mode |
Date: |
Sun, 11 Mar 2012 23:52:55 +0100 |
User-agent: |
KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; ) |
Michael Goffioul wrote:
> frexpf is actually defined as a macro in C,
> and as an inline function in C++.
Normally gnulib avoids collisions with system functions by checking whether
a system function exists, via AC_CHECK_FUNCS. But AC_CHECK_FUNCS looks
only in the libraries and misses the inline functions...
Would it help to set REPLACE_FREXPF to 1? To test this, simply change your
copy of math.in.h, replacing
# if @REPLACE_FREXPF@
with a)
# if @REPLACE_FREXPF@ || defined _MSC_VER
or b)
# if @REPLACE_FREXPF@ || (defined _MSC_VER && defined __cplusplus)
Does one or the other produce better results?
Bruno