[vlc-devel] [PATCH] libvlc: ssize_t is not standard C, provide definition for windows compiler.
Pierre Lamot
pierre at videolabs.io
Fri Oct 6 14:29:53 CEST 2017
---
include/vlc/libvlc_media.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
index 383f366b69..e44bf1a180 100644
--- a/include/vlc/libvlc_media.h
+++ b/include/vlc/libvlc_media.h
@@ -26,6 +26,11 @@
#ifndef VLC_LIBVLC_MEDIA_H
#define VLC_LIBVLC_MEDIA_H 1
+# if defined(_MSC_VER)
+# include <basetsd.h>
+typedef SSIZE_T ssize_t;
+# endif
+
# ifdef __cplusplus
extern "C" {
# endif
--
2.14.2
More information about the vlc-devel
mailing list