diff --git "a/include/vlc/plugins/vlc_common.h" "b/include/vlc/plugins/vlc_common.h.new"
index 9183ed3..e25d990 100644
--- "a/include/vlc/plugins/vlc_common.h"
+++ "b/include/vlc/plugins/vlc_common.h.new"
@@ -675,6 +675,8 @@ static inline uint64_t bswap64 (uint64_t x)
 {
 #if VLC_GCC_VERSION(4,3)
     return __builtin_bswap64 (x);
+#elif defined (_MSC_VER)
+    return _byteswap_uint64 (x);
 #elif !defined (__cplusplus)
     return ((x & 0x00000000000000FF) << 56)
          | ((x & 0x000000000000FF00) << 40) 

