diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-10-21 18:26:53 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-10-21 18:26:53 +0200 |
commit | b3918c44db615637b26d919ce599cd86592316b3 (patch) | |
tree | 23c031ee3aaf2e2fccce583920cafb40eacdce3f /math/Makefile | |
parent | 0f04fc07f6a36e761ec76100043798ea5c7a590c (diff) | |
download | glibc-b3918c44db615637b26d919ce599cd86592316b3.tar.gz glibc-b3918c44db615637b26d919ce599cd86592316b3.tar.xz glibc-b3918c44db615637b26d919ce599cd86592316b3.zip |
math: Define iszero as a function template for C++ [BZ #20715]
This increases compatibility with C++ code which is forced to compile with _GNU_SOURCE.
Diffstat (limited to 'math/Makefile')
-rw-r--r-- | math/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/math/Makefile b/math/Makefile index 2aa6a344e5..7cecba5357 100644 --- a/math/Makefile +++ b/math/Makefile @@ -165,7 +165,7 @@ tests-static = test-fpucw-static test-fpucw-ieee-static \ test-signgam-ullong-static test-signgam-ullong-init-static ifneq (,$(CXX)) -tests += test-math-isinff +tests += test-math-isinff test-math-iszero endif ifneq (no,$(PERL)) @@ -267,6 +267,7 @@ CFLAGS-test-signgam-ullong-static.c = -std=c99 CFLAGS-test-signgam-ullong-init-static.c = -std=c99 CFLAGS-test-math-isinff.cc = -std=gnu++11 +CFLAGS-test-math-iszero.cc = -std=gnu++11 CFLAGS-test-iszero-excess-precision.c = -fexcess-precision=standard CFLAGS-test-iseqsig-excess-precision.c = -fexcess-precision=standard |