Skip to content

Commit 0e8a829

Browse files
author
Bryan Bartley
committed
Fix preprocessor directive for conditional compilation of Python extension code
1 parent 14d88b5 commit 0e8a829

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

source/properties.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ namespace sbol
422422
return (int)size;
423423
}
424424

425+
#if defined(SBOL_BUILD_PYTHON2) || defined(SBOL_BUILD_PYTHON3)
426+
425427
std::vector<SBOLObject*>::iterator python_iter;
426428

427429
SBOLClass& __getitem__(const int nIndex)
@@ -475,7 +477,8 @@ namespace sbol
475477
{
476478
return this->size();
477479
}
478-
};
480+
#endif
481+
};
479482

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

0 commit comments

Comments
 (0)