vlc | branch: master | Steve Lhomme <[email protected]> | Mon Jul 15 12:41:29 
2019 +0200| [a9e0b1124e19225b903a2926951781e84002c410] | committer: Steve Lhomme

vlc_common: fix swab() calls on win32 that don't use const on source pointer

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9e0b1124e19225b903a2926951781e84002c410
---

 include/vlc_common.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 78d4c17850..e4c5cd85c9 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -1106,6 +1106,11 @@ static inline void SetQWLE (void *p, uint64_t qw)
 #   ifndef O_NONBLOCK
 #       define O_NONBLOCK 0
 #   endif
+
+/* the mingw32 swab() and win32 _swab() prototypes expect a char* instead of a
+   const void* */
+#  define swab(a,b,c)  swab((char*) (a), (char*) (b), (c))
+
 #endif /* _WIN32 */
 
 typedef struct {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to