diff --git a/src/SBML.cpp b/src/SBML.cpp index d6895a8..8184b62 100644 --- a/src/SBML.cpp +++ b/src/SBML.cpp @@ -11,12 +11,12 @@ using namespace Rcpp; -// Check the version of libSBML -#if LIBSBML_VERSION >= 52000 -// For libSBML version 5.20.0 and above, use the libsbml namespace +// Check if the g++ version is 12 or higher +#if (__GNUC__ > 11) || (__GNUC__ == 11 && __GNUC_MINOR__ >= 0) using namespace libsbml; #endif + /* * Get libSBML version number */