[geos-commits] [SCM] GEOS branch 3.7 updated. bd39ea219cbdd6682cb47541cb1e31c6eba5ecbc

git at osgeo.org git at osgeo.org
Wed Sep 18 09:58:43 PDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, 3.7 has been updated
       via  bd39ea219cbdd6682cb47541cb1e31c6eba5ecbc (commit)
      from  6d32389b6a2950b9762932b1b1f9d0a2e0ae3d26 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bd39ea219cbdd6682cb47541cb1e31c6eba5ecbc
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Sep 18 09:58:29 2019 -0700

    Add <stdint.h> to account for uint64_t

diff --git a/include/geos/constants.h b/include/geos/constants.h
new file mode 100644
index 0000000..f58207e
--- /dev/null
+++ b/include/geos/constants.h
@@ -0,0 +1,55 @@
+/**********************************************************************
+ *
+ * constants.h
+ *
+ * GEOS - Geometry Engine Open Source
+ * http://geos.osgeo.org
+ *
+ * Copyright (C) 2018 Vicky Vergara
+ * Copyright (C) 2009 Mateusz Loskot
+ * Copyright (C) 2005-2009 Refractions Research Inc.
+ * Copyright (C) 2001-2009 Vivid Solutions Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of the GNU Lesser General Public Licence as published
+ * by the Free Software Foundation.
+ * See the COPYING file for more information.
+ *
+ *********************************************************************/
+
+#ifndef INCLUDE_GEOS_CONSTANTS_H_
+#define INCLUDE_GEOS_CONSTANTS_H_
+
+#ifdef _MSC_VER
+#ifndef NOMINMAX
+#define NOMINMAX 1
+typedef __int64 int64;
+#endif
+#endif
+
+#include <cmath>
+#include <limits>
+#include <cinttypes>
+#include <stdint.h>
+
+#ifdef M_PI
+#undef M_PI
+#endif
+typedef int64_t int64;
+
+namespace geos {
+
+constexpr double M_PI = 3.14159265358979323846;
+
+
+
+// Some handy constants
+constexpr double DoubleNotANumber = std::numeric_limits<double>::quiet_NaN();
+constexpr double DoubleMax = (std::numeric_limits<double>::max)();
+constexpr double DoubleInfinity = (std::numeric_limits<double>::infinity)();
+constexpr double DoubleNegInfinity = (-(std::numeric_limits<double>::infinity)());
+
+}  // namespace geos
+
+
+#endif  // INCLUDE_GEOS_CONSTANTS_H_

-----------------------------------------------------------------------

Summary of changes:
 include/geos/{platform.h.cmake => constants.h} | 55 ++++++--------------------
 1 file changed, 12 insertions(+), 43 deletions(-)
 copy include/geos/{platform.h.cmake => constants.h} (54%)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list