[vlc-devel] [PATCH 36/41] Undefine bswap16, bswap32, and bswap64 to avoid name clash on OS/2

KO Myung-Hun komh at chollian.net
Mon Oct 10 13:44:15 CEST 2011


---
 include/vlc_common.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 95a9531..073cb82 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -645,6 +645,12 @@ static inline unsigned popcount (unsigned x)
 #endif
 }
 
+#ifdef __OS2__
+#   undef bswap16
+#   undef bswap32
+#   undef bswap64
+#endif
+
 /** Byte swap (16 bits) */
 VLC_USED
 static inline uint16_t bswap16 (uint16_t x)
-- 
1.7.3.2



More information about the vlc-devel mailing list