Skip to content

Commit

Permalink
Fix preprocessor directive for conditional compilation of Python exte…
Browse files Browse the repository at this point in the history
…nsion code
  • Loading branch information
Bryan Bartley committed Jun 14, 2017
1 parent 14d88b5 commit 0e8a829
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@ namespace sbol
return (int)size;
}

#if defined(SBOL_BUILD_PYTHON2) || defined(SBOL_BUILD_PYTHON3)

std::vector<SBOLObject*>::iterator python_iter;

SBOLClass& __getitem__(const int nIndex)
Expand Down Expand Up @@ -475,7 +477,8 @@ namespace sbol
{
return this->size();
}
};
#endif
};

template <class SBOLClass >
OwnedObject< SBOLClass >::OwnedObject(sbol_type type_uri, SBOLObject *property_owner, std::string dummy) :
Expand Down

0 comments on commit 0e8a829

Please sign in to comment.