[vlc-devel] how can i change ssize_t in "typedef ssize_t (*libvlc_media_read_cb)(void *opaque, unsigned char *buf, size_t len); " to compile in vs2019
ajanni at videolabs.io
Mon Dec 21 10:19:02 UTC 2020
ssize_t (and size_t iirc) are not defined by msvc headers,
but the Windows SDK defines SIZE_T and SSIZE_T, so you can
typedef/define them when compiling with MSVC, before
including VLC headers.
Other windows developers might have a more precise code
snippet but I fear they might be unavailable currently.
On Mon, Dec 21, 2020 at 01:31:32PM +0800, Mashomii wrote:
> Hello Everyone!
> I've been using the excellent VLC sdk to display a RTSP stream in a winform application.
> The callback declaration
> "typedef ssize_t (*libvlc_media_read_cb)(void *opaque, unsigned char *buf, size_t len);"
> in header file
> doesn't compile in VS2019.
> It seems the "ssize_t" doesn't exits on vc++ compiler headers.
> How should I change the type "ssize_t" to using the sdk?
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
More information about the vlc-devel