From 5a483daac546bab03f10b90967412668e5d48454 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 17 Mar 2022 22:43:20 -0600 Subject: [PATCH] Fix M_2PI issue --- update_from_upstream.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update_from_upstream.sh b/update_from_upstream.sh index 78e8b71..e207895 100755 --- a/update_from_upstream.sh +++ b/update_from_upstream.sh @@ -30,6 +30,9 @@ find ./src/ -type f -exec sed -i -r 's/#include "shapelib\/shapefil.h"/#include find ./src/ -type f -name "*.hpp" -execdir rename 's/\.hpp/_hpp.h/' '{}' \; find ./src/ -type f -exec sed -i -r 's/\.hpp/_hpp.h/' {} \; +# M_2PI variable because it's included in R and DGGRID doesn't use namespaces +find ./src/ -type f -exec sed -i -r 's/constexpr long double M_2PI.*//' {} \; + rm -rf src/Makefile.noCMake cp copy_to_src/* ./src/ \ No newline at end of file