[PATCH] D23926: [libcxx] Don't use C99 math ops in -std=c++03 mode

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 1 02:32:27 PDT 2016


rmaprath updated this revision to Diff 69962.
rmaprath added a comment.

Simplified the patch a little bit more.

Now, library vendors should be able to define `_LIBCPP_STRICT_C99_COMPATIBILITY` and `libc++` will not use/test C99 math functions in `C++03/98` modes. Currently it's only the math functions, we can extend this approach to other affected areas if the approach is OK. Not 100% sure about the namings, can change them as needed.

@EricWF: Gentle ping.


https://reviews.llvm.org/D23926

Files:
  include/__config
  include/math.h
  test/std/depr/depr.c.headers/math_h.pass.cpp
  test/std/numerics/c.math/cmath.pass.cpp
  test/std/numerics/complex.number/cmplx.over/proj.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23926.69962.patch
Type: text/x-patch
Size: 5762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160901/5ae31cb9/attachment-0001.bin>


More information about the cfe-commits mailing list