summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorPierre Moreau <[email protected]>2016-04-14 20:43:00 +0200
committerJose Fonseca <[email protected]>2016-04-18 11:10:25 +0100
commit649704f1f7c9e1d0990d34a76154b2eb656bee42 (patch)
treee1e332793aa292cec3d253a5e3a82696c8c93125 /src/gallium/drivers/vc4
parentd3c98c73dc6547700e7c28f90019559f638b5d8c (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/gallium/drivers/vc4')
0 files changed, 0 insertions, 0 deletions