Skip to content

Commit

Permalink
Fix M_2PI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
r-barnes committed Mar 18, 2022
1 parent 191a6fd commit 5a483da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions update_from_upstream.sh
Expand Up @@ -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/

0 comments on commit 5a483da

Please sign in to comment.