has_c99_cmath.cpp 383 B

1234567891011121314151617
  1. // Copyright John Maddock 2015.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #include <math.h>
  6. int main()
  7. {
  8. long double d = 1;
  9. d = ::erf(d);
  10. d = ::erfc(d);
  11. d = ::tgamma(d);
  12. d = ::lgamma(d);
  13. return d != 0 ? 0 : 1;
  14. }