pgRouting / osm2pgrouting

Import tool for OpenStreetMap data to pgRouting database
https://pgrouting.org
GNU General Public License v2.0
288 stars 112 forks source link

Switch to a more inclusive check for nullptr definition #230

Closed mistydemeo closed 6 years ago

mistydemeo commented 6 years ago

This avoids redefining nullptr on platforms where it is defined, such as on macOS using recent versions of clang.

I've confirmed that this fixes compilation on macOS 10.13 using Xcode 9.3.

cc @ilovezfs

Fixes #227.

mistydemeo commented 6 years ago

I decided to go with the Boost macro here, but using cmake to detect the feature would also have been possible. Given that Boost is already required to build, this seemed like the most straightforward solution.