Re: Issues with C++ overloaded math functions in math.h in the wrong scope

2020-01-04 Thread Martin Storsjö
On Sat, 4 Jan 2020, Bruno Haible wrote: Hi Martin, In this particular case, this math.h header ends up included in a context wrapped in 'extern "C" {}' surrounding it, which breaks the C++ function overloading. The general convention is that header files must be included outside of any 'exte

Re: Issues with C++ overloaded math functions in math.h in the wrong scope

2020-01-04 Thread Bruno Haible
Hi Martin, > In this particular case, this math.h header ends up included in a context > wrapped in 'extern "C" {}' surrounding it, which breaks the C++ function > overloading. The general convention is that header files must be included outside of any 'extern "C" {}' or 'extern "C++" {}' conte

Issues with C++ overloaded math functions in math.h in the wrong scope

2020-01-02 Thread Martin Storsjö
Hi, When building a test package shared in https://savannah.gnu.org/bugs/?57406 (https://haible.de/bruno/gnu/testdir-posix-mingw.tar.gz) with my mingw/clang/libc++ based toolchain, I ran into some errors in the gltests subdirectory. One of the errors looks like this: In file included from