aboutsummaryrefslogtreecommitdiff
path: root/src/geodesic.c
diff options
context:
space:
mode:
authorCharles Karney <charles.karney@sri.com>2019-09-18 13:27:06 -0400
committerCharles Karney <charles.karney@sri.com>2019-09-18 13:27:06 -0400
commit329e7a9be67c15936488ef37739df065a4b81bf7 (patch)
treed336657044d2c7070eb7ba4b4a8c5ccd4b12fc3b /src/geodesic.c
parent9f41f427d0fe6966d187f746f523e84892f240a5 (diff)
downloadPROJ-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.c17
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