Skip to content

Commit

Permalink
Use namespace for libsbml when gcc version >11
Browse files Browse the repository at this point in the history
Refers to #5
  • Loading branch information
Waschina committed Aug 17, 2024
1 parent 201e6c3 commit 4ede086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SBML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 4ede086

Please sign in to comment.