SHA256
1
0
forked from pool/hugin
hugin/hugin-deprecated-copy_option.patch
Petr Gajdos 30fd3200b0 Accepting request 1170135 from home:pgajdos
- fixed build with new boost
- added patches
  fix deprecated boost::filesystem::copy_option enum
  + hugin-deprecated-copy_option.patch

OBS-URL: https://build.opensuse.org/request/show/1170135
OBS-URL: https://build.opensuse.org/package/show/graphics/hugin?expand=0&rev=132
2024-04-25 10:43:47 +00:00

18 lines
825 B
Diff

diff -r 4b55f17c4e72 -r 4d081490b48a src/hugin_base/hugin_utils/filesystem.h
--- a/src/hugin_base/hugin_utils/filesystem.h Tue Mar 12 17:27:29 2024 +0100
+++ b/src/hugin_base/hugin_utils/filesystem.h Tue Mar 12 17:27:57 2024 +0100
@@ -64,6 +64,12 @@
#endif
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
- #define OVERWRITE_EXISTING boost::filesystem::copy_option::overwrite_if_exists
+ #if BOOST_VERSION>=107400
+ // in Boost 1.74 and later filesystem::copy_option is deprecated
+ // use filesystem::copy_options instead
+ #define OVERWRITE_EXISTING boost::filesystem::copy_options::overwrite_existing
+ #else
+ #define OVERWRITE_EXISTING boost::filesystem::copy_option::overwrite_if_exists
+ #endif
#endif
#endif // _HUGIN_UTILS_FILESYSTEM_H