Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for C99 math functions, hypot, atanh, cbrt, etc. #555

Merged
merged 2 commits into from
Aug 13, 2017

Commits on Aug 6, 2017

  1. Add tests for C99 math functions, hypot, atanh, cbrt, etc.

    This tests whether the functions are declared in <math.h>.  If they are,
    then -DHAVE_C99_MATH=1 is added to the C flags.  The intention is that
    this flag is only seen when building proj.4 and shouldn't be referenced
    in any of the installed include files.  The next update to geodesic.c
    will use this flag.
    
    Left unaddressed is what to do if HAVE_C99_MATH is 0.  The strategy in
    geodesic.c is to assume that the missing functions will need to be
    defined explicitly.  A less safe alternative is to assume that the
    functions are in fact available in libm and that all that needs to be
    done is to declare the functions.
    cffk committed Aug 6, 2017
    Configuration menu
    Copy the full SHA
    5a0ef58 View commit details
    Browse the repository at this point in the history
  2. Fix typo in CMakeLists.txt

    cffk committed Aug 6, 2017
    Configuration menu
    Copy the full SHA
    3b36c73 View commit details
    Browse the repository at this point in the history