ncsu-landscape-dynamics / pops-core

PoPS Core: C++ library for the Pest or Pathogen Spread Model
https://ncsu-landscape-dynamics.github.io/pops-core
GNU General Public License v2.0
5 stars 2 forks source link

Define UNUSED always, M_PI, PI only conditionally #191

Closed wenzeslaus closed 1 year ago

wenzeslaus commented 1 year ago

Uses ifndef to detect if the macro was already defined. If defied, it assumes it has the right meaning and uses that instead.

This makes it more compatible with other code which defines these constants. Specifically, new GRASS GIS defines UNUSED, so compiling r.pops.spread then issues a warning or error.