ole32: undefine le32toh/le16toh to avoid a conflict

Austin English austinenglish at gmail.com
Wed Jan 21 22:08:17 CST 2009


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/ole32/storage32.h b/dlls/ole32/storage32.h
index b358ed2..3621f94 100644
--- a/dlls/ole32/storage32.h
+++ b/dlls/ole32/storage32.h
@@ -392,6 +392,13 @@ StgStreamImpl* StgStreamImpl_Construct(
 /******************************************************************************
  * Endian conversion macros
  */
+#ifdef le32toh /* Conflicts with /usr/include/sys/endian.h on NetBSD */
+#undef le32toh
+#endif
+#ifdef le16toh /* Conflicts with /usr/include/sys/endian.h on NetBSD */
+#undef le16toh
+#endif
+
 #ifdef WORDS_BIGENDIAN
 
 #define htole32(x) RtlUlongByteSwap(x)


More information about the wine-patches mailing list