<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><div>Thank you all for your attention!</div><div>I'll do as suggested.</div><div><br></div><div><!--emptysign--></div><div><div style="font-size:12px;padding:2px 0;">---Original---</div><div style="font-size:12px;background:#f0f0f0;color:#212121;padding:8px!important;border-radius:4px;line-height:1.5;"><div><b>From:</b> "Hugo Beauzée-Luyssen"<hugo@beauzee.fr></div><div><b>Date:</b> Mon, Dec 21, 2020 18:29 PM</div><div><b>To:</b> "Mailing list for VLC media player developers"<vlc-devel@videolan.org>;</div><div><b>Subject:</b> Re: [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</div></div><br><br><br>On Mon, Dec 21, 2020, at 11:19 AM, Alexandre Janniaux wrote:<br>> Hi,<br>> <br>> ssize_t (and size_t iirc) are not defined by msvc headers,<br><br>AFAIR size_t is not an issue, but indeed ssize_t is<br><br>> but the Windows SDK defines SIZE_T and SSIZE_T, so you can<br>> typedef/define them when compiling with MSVC, before<br>> including VLC headers.<br>> <br>> Other windows developers might have a more precise code<br>> snippet but I fear they might be unavailable currently.<br>> <br><br>#include <basetsd.h><br>typedef SSIZE_T ssize_t;<br><br>is what we usually use<br><br>> Regards,<br>> --<br>> Alexandre Janniaux<br>> Videolabs<br>> <br>> On Mon, Dec 21, 2020 at 01:31:32PM +0800, Mashomii wrote:<br>> > Hello Everyone!<br>> > I've been using the excellent VLC sdk to display a RTSP stream in a winform application.<br>> ><br>> ><br>> > The callback declaration<br>> ><br>> > "typedef ssize_t (*libvlc_media_read_cb)(void *opaque, unsigned char *buf,&nbsp; size_t len);"<br>> > in header file<br>> ><br>> > "vlc-3.0.11-win32\vlc-3.0.11\sdk\include\vlc\libvlc_media.h"<br>> > doesn't compile in VS2019.<br>> ><br>> ><br>> > It seems the "ssize_t" doesn't exits on vc++ compiler headers.<br>> ><br>> ><br>> > How should I change the type "ssize_t" to using the sdk?<br>> <br>> > _______________________________________________<br>> > vlc-devel mailing list<br>> > To unsubscribe or modify your subscription options:<br>> > https://mailman.videolan.org/listinfo/vlc-devel<br>> _______________________________________________<br>> vlc-devel mailing list<br>> To unsubscribe or modify your subscription options:<br>> https://mailman.videolan.org/listinfo/vlc-devel<br><br>-- <br>  Hugo Beauzée-Luyssen<br>  hugo@beauzee.fr<br>_______________________________________________<br>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br>https://mailman.videolan.org/listinfo/vlc-devel</div>