From 646da7bf3868090ec8ac2d05ab63781de86be64b Mon Sep 17 00:00:00 2001 From: Charles Karney Date: Wed, 18 Sep 2019 14:25:15 -0400 Subject: math.cpp removed since its isnan isn't used. Keep proj_math.h (which just includes math.h and limits.h) since it's included in a score of places. --- src/proj_math.h | 46 +--------------------------------------------- 1 file changed, 1 insertion(+), 45 deletions(-) (limited to 'src/proj_math.h') diff --git a/src/proj_math.h b/src/proj_math.h index 698654dd..ac7fc51d 100644 --- a/src/proj_math.h +++ b/src/proj_math.h @@ -1,6 +1,6 @@ /****************************************************************************** * Project: PROJ - * Purpose: Make C99 math functions available on C89 systems + * Purpose: Math support for PROJ -- now provided by system libraries * Author: Kristian Evers * ****************************************************************************** @@ -31,48 +31,4 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - -#if !(defined(HAVE_C99_MATH) && HAVE_C99_MATH) - -#ifndef PROJ_DLL -#ifdef PROJ_MSVC_DLL_EXPORT -#define PROJ_DLL __declspec(dllexport) -#elif defined(PROJ_MSVC_DLL_IMPORT) -#define PROJ_DLL __declspec(dllimport) -#elif defined(__GNUC__) -#define PROJ_DLL __attribute__ ((visibility("default"))) -#else -#define PROJ_DLL -#endif -#endif - -#ifdef PROJ_RENAME_SYMBOLS -#include "proj_symbol_rename.h" -#endif - -#ifndef NAN -#ifdef _WIN32 -#define NAN sqrt(-1.0) -#else -#define NAN 0.0/0.0 -#endif -#endif - -int PROJ_DLL pj_isnan(double x); - -#ifdef isnan -#undef isnan -#endif - -#define isnan pj_isnan - -#endif /* !(defined(HAVE_C99_MATH) && HAVE_C99_MATH) */ - -#ifdef __cplusplus -} -#endif - #endif /* PROJ_MATH_H */ -- cgit v1.2.3