From 57a604aec70264000c080e85ed19146815fcd723 Mon Sep 17 00:00:00 2001 From: program-- Date: Wed, 10 May 2023 07:03:22 -0700 Subject: [PATCH] more ifdef -> if fixes --- src/NGen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NGen.cpp b/src/NGen.cpp index c6e5807f77..7ed7d52ced 100644 --- a/src/NGen.cpp +++ b/src/NGen.cpp @@ -265,7 +265,7 @@ int main(int argc, char *argv[]) { // TODO: Instead of iterating through a collection of FeatureBase objects mapping to nexi, we instead want to iterate through HY_HydroLocation objects geojson::GeoJSON nexus_collection; if (boost::algorithm::ends_with(nexusDataFile, "gpkg")) { - #ifdef NGEN_WITH_SQLITE3 + #if NGEN_WITH_SQLITE3 nexus_collection = geopackage::read(nexusDataFile, "nexus", nexus_subset_ids); #else throw std::runtime_error("SQLite3 support required to read GeoPackage files.") @@ -278,7 +278,7 @@ int main(int argc, char *argv[]) { // TODO: Instead of iterating through a collection of FeatureBase objects mapping to catchments, we instead want to iterate through HY_Catchment objects geojson::GeoJSON catchment_collection; if (boost::algorithm::ends_with(catchmentDataFile, "gpkg")) { - #ifdef NGEN_WITH_SQLITE3 + #if NGEN_WITH_SQLITE3 catchment_collection = geopackage::read(catchmentDataFile, "divides", catchment_subset_ids); #else throw std::runtime_error("SQLite3 support required to read GeoPackage files.")