try to improve undef-ing of ERROR.
[dcpomatic.git] / src / lib / cross.h
index 4be121d2bb1daec1e46451366e26621ecef7ca63..4281700a77dbd63be719d17612a87aaf194ff552 100644 (file)
@@ -29,6 +29,8 @@
 #include <IOKit/pwr_mgt/IOPMLib.h>
 #endif
 #include <boost/filesystem.hpp>
+/* windows.h defines this but we want to use it */
+#undef ERROR
 #include <boost/thread/mutex.hpp>
 #include <boost/optional.hpp>