diff options
| author | Charles Karney <charles.karney@sri.com> | 2019-09-18 13:27:06 -0400 |
|---|---|---|
| committer | Charles Karney <charles.karney@sri.com> | 2019-09-18 13:27:06 -0400 |
| commit | 329e7a9be67c15936488ef37739df065a4b81bf7 (patch) | |
| tree | d336657044d2c7070eb7ba4b4a8c5ccd4b12fc3b /src/geodesic.c | |
| parent | 9f41f427d0fe6966d187f746f523e84892f240a5 (diff) | |
| download | PROJ-329e7a9be67c15936488ef37739df065a4b81bf7.tar.gz PROJ-329e7a9be67c15936488ef37739df065a4b81bf7.zip | |
Get rid of dead code. The end result of this chain of commits is to
eliminate most of math.cpp. All that is left is the handling of
isnan (and I've this because math.cpp notes that gie.c uses pj_isnan).
geodesic.c now handles supplying C99 math functions internally and this
can go away once C99 support is mandated.
Diffstat (limited to 'src/geodesic.c')
| -rw-r--r-- | src/geodesic.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/geodesic.c b/src/geodesic.c index beb841a0..49c9823e 100644 --- a/src/geodesic.c +++ b/src/geodesic.c @@ -23,23 +23,8 @@ * https://geographiclib.sourceforge.io/ */ -/* The PROJ_COMPILATION flag indicates that this is part of the compilation of - * the PROJ library (keyed off the presence of the PROJ_LIB macro which points - * to the data directory for PROJ). If this is set, we use the PROJ supplied - * implementations of the C99 math functions instead of the ones defined here. - */ -#if 0 && defined(PROJ_LIB) -#define PROJ_COMPILATION 1 -#else -#define PROJ_COMPILATION 0 -#endif - #include "geodesic.h" -#if PROJ_COMPILATION -#include "proj_math.h" -#else #include <math.h> -#endif #if !defined(HAVE_C99_MATH) #define HAVE_C99_MATH 0 @@ -133,7 +118,7 @@ enum captype { }; static real sq(real x) { return x * x; } -#if HAVE_C99_MATH || PROJ_COMPILATION +#if HAVE_C99_MATH #define atanhx atanh #define copysignx copysign #define hypotx hypot |
