From 3e58f3cd4d8d1d6209f5d64419d37cc213f4d4c3 Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 26 Sep 2018 00:36:59 +0000 Subject: [PATCH] Improve Windows compatibility of toxav code. - unistd.h doesn't exist on MSVC. - `vpx_codec_iface_t` is already `const`, so adding `const` qualifiers is redundant and causes warnings on MSVC. --- toxav/msi.c | 1 - toxav/video.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/toxav/msi.c b/toxav/msi.c index 244225fa..f82b91ba 100644 --- a/toxav/msi.c +++ b/toxav/msi.c @@ -30,7 +30,6 @@ #include #include #include -#include #define MSI_MAXMSG_SIZE 256 diff --git a/toxav/video.c b/toxav/video.c index ab47ae97..545d95b6 100644 --- a/toxav/video.c +++ b/toxav/video.c @@ -72,11 +72,11 @@ #define VIDEO_BITRATE_INITIAL_VALUE 5000 #define VIDEO_DECODE_BUFFER_SIZE 5 // this buffer has normally max. 1 entry -static const vpx_codec_iface_t *video_codec_decoder_interface(void) +static vpx_codec_iface_t *video_codec_decoder_interface(void) { return vpx_codec_vp8_dx(); } -static const vpx_codec_iface_t *video_codec_encoder_interface(void) +static vpx_codec_iface_t *video_codec_encoder_interface(void) { return vpx_codec_vp8_cx(); }