diff options
| author | Charles Karney <charles.karney@sri.com> | 2019-09-18 14:25:15 -0400 |
|---|---|---|
| committer | Charles Karney <charles.karney@sri.com> | 2019-09-18 14:25:15 -0400 |
| commit | 646da7bf3868090ec8ac2d05ab63781de86be64b (patch) | |
| tree | f81f4da4ac56d65e57cade596d462253e2b21217 /src/proj_math.h | |
| parent | 329e7a9be67c15936488ef37739df065a4b81bf7 (diff) | |
| download | PROJ-646da7bf3868090ec8ac2d05ab63781de86be64b.tar.gz PROJ-646da7bf3868090ec8ac2d05ab63781de86be64b.zip | |
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.
Diffstat (limited to 'src/proj_math.h')
| -rw-r--r-- | src/proj_math.h | 46 |
1 files changed, 1 insertions, 45 deletions
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 <math.h> #include <limits.h> -#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 */ |
