Skip to content

Commit

Permalink
Merge pull request #118 from eddelbuettel/master
Browse files Browse the repository at this point in the history
Switch one PI to M_PI to support STRICT_R_HEADERS
  • Loading branch information
edzer authored Jun 2, 2021
2 parents 6e344ad + d5cbc99 commit e39716e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Makevars.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PKG_CPPFLAGS = -I../inst/include
PKG_CPPFLAGS = -I../inst/include -DSTRICT_R_HEADERS
PKG_LIBS = @libs@
PKG_CXXFLAGS = @cflags@ -pthread
CXX_STD = CXX11
Expand Down
2 changes: 1 addition & 1 deletion src/s2-transformers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ List cpp_s2_unary_union(List geog, List s2options) {

// Check if the builder created a polygon whose boundary contained more than
// half the earth (and invert it if so)
if (loop->GetArea() > (2 * PI)) {
if (loop->GetArea() > (2 * M_PI)) {
loop->Invert();
}

Expand Down

0 comments on commit e39716e

Please sign in to comment.