diff options
author | Pierre Moreau <[email protected]> | 2016-04-14 20:43:00 +0200 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2016-04-18 11:10:25 +0100 |
commit | 649704f1f7c9e1d0990d34a76154b2eb656bee42 (patch) | |
tree | e1e332793aa292cec3d253a5e3a82696c8c93125 /src/mesa/state_tracker/st_cb_eglimage.h | |
parent | d3c98c73dc6547700e7c28f90019559f638b5d8c (diff) |
math: Import isinf and others to global namespace
Starting from C++11, several math functions, like isinf, moved into the std
namespace. Since cmath undefines those functions before redefining them inside
the namespace, and glibc 2.23 defines the C variants as macros, the C variants
in global namespace are not accessible any longer.
v2: Move the fix outside of Nouveau, as suggested by Jose Fonseca, since anyone
might need it when GCC switches to C++14 by default with GCC 6.0.
v3:
* Put the code directly inside c99_math.h rather than creating a new header
file, as asked by Jose Fonseca;
* Guard the code behind glibc version checks, as only glibc > =2.23 defines
isinf & co. as functions, as suggested by Jose Fonseca.
Signed-off-by: Pierre Moreau <[email protected]>
Signed-off-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_eglimage.h')
0 files changed, 0 insertions, 0 deletions