@@ -4313,6 +4313,15 @@ static void _set_python_exception() {
43134313};
43144314
43154315
4316+ #if !EXIV2_TEST_VERSION(0, 28, 3)
4317+ #define EXV_ENABLE_FILESYSTEM
4318+ #endif
4319+ // Copy EXV_ENABLE_FILESYSTEM for use in macro
4320+ #ifdef EXV_ENABLE_FILESYSTEM
4321+ #define _EXV_ENABLE_FILESYSTEM
4322+ #endif
4323+
4324+
43164325// Base class implements all methods except dereferencing
43174326class ExifData_iterator_base {
43184327protected:
@@ -8649,7 +8658,11 @@ SWIGINTERN PyObject *_wrap_ExifThumbC_writeFile(PyObject *self, PyObject *args)
86498658 }
86508659 {
86518660 try {
8661+ #ifdef _EXV_ENABLE_FILESYSTEM
86528662 result = (long )((Exiv2::ExifThumbC const *)arg1)->writeFile ((std::string const &)*arg2);
8663+ #else
8664+ throw Exiv2::Error (Exiv2::ErrorCode::kerFunctionNotSupported);
8665+ #endif
86538666 }
86548667 catch (std::exception const & e) {
86558668 _set_python_exception ();
@@ -8859,7 +8872,11 @@ SWIGINTERN PyObject *_wrap_ExifThumb_setJpegThumbnail__SWIG_0(PyObject *self, Py
88598872 }
88608873 {
88618874 try {
8875+ #ifdef _EXV_ENABLE_FILESYSTEM
88628876 (arg1)->setJpegThumbnail ((std::string const &)*arg2,arg3,arg4,arg5);
8877+ #else
8878+ throw Exiv2::Error (Exiv2::ErrorCode::kerFunctionNotSupported);
8879+ #endif
88638880 }
88648881 catch (std::exception const & e) {
88658882 _set_python_exception ();
@@ -8990,7 +9007,11 @@ SWIGINTERN PyObject *_wrap_ExifThumb_setJpegThumbnail__SWIG_2(PyObject *self, Py
89909007 }
89919008 {
89929009 try {
9010+ #ifdef _EXV_ENABLE_FILESYSTEM
89939011 (arg1)->setJpegThumbnail ((std::string const &)*arg2);
9012+ #else
9013+ throw Exiv2::Error (Exiv2::ErrorCode::kerFunctionNotSupported);
9014+ #endif
89949015 }
89959016 catch (std::exception const & e) {
89969017 _set_python_exception ();
0 commit comments