Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / gil / extension / io / raw / tags.hpp
index 6f0dfe6..f8e18a5 100644 (file)
 
 #include <boost/gil/io/base.hpp>
 
+// Historically, LibRaw expects WIN32, not _WIN32 (see https://github.com/LibRaw/LibRaw/pull/206)
+#ifdef _MSC_VER
+#ifndef WIN32
+#define WIN32
+#endif
+#pragma warning(push)
+#pragma warning(disable:4251) // 'type' needs to have dll-interface to be used by clients of class
+#endif
+
 #include <libraw/libraw.h>
 
 namespace boost { namespace gil {
@@ -190,7 +199,10 @@ struct image_write_info< raw_tag >
 {
 };
 
-} // namespace gil
-} // namespace boost
+}} // namespace boost::gil
+
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
 
 #endif