diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-09-26 00:36:59 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-10-08 22:22:58 +0000 |
commit | 3e58f3cd4d8d1d6209f5d64419d37cc213f4d4c3 (patch) | |
tree | 60065469ca637300d40eeaad47ce855aea6f639d /toxav | |
parent | 17a7bf3fd25d5b862b02267843fa2d37ed387d43 (diff) |
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.
Diffstat (limited to 'toxav')
-rw-r--r-- | toxav/msi.c | 1 | ||||
-rw-r--r-- | 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 @@ | |||
30 | #include <stdbool.h> | 30 | #include <stdbool.h> |
31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
32 | #include <string.h> | 32 | #include <string.h> |
33 | #include <unistd.h> | ||
34 | 33 | ||
35 | #define MSI_MAXMSG_SIZE 256 | 34 | #define MSI_MAXMSG_SIZE 256 |
36 | 35 | ||
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 @@ | |||
72 | #define VIDEO_BITRATE_INITIAL_VALUE 5000 | 72 | #define VIDEO_BITRATE_INITIAL_VALUE 5000 |
73 | #define VIDEO_DECODE_BUFFER_SIZE 5 // this buffer has normally max. 1 entry | 73 | #define VIDEO_DECODE_BUFFER_SIZE 5 // this buffer has normally max. 1 entry |
74 | 74 | ||
75 | static const vpx_codec_iface_t *video_codec_decoder_interface(void) | 75 | static vpx_codec_iface_t *video_codec_decoder_interface(void) |
76 | { | 76 | { |
77 | return vpx_codec_vp8_dx(); | 77 | return vpx_codec_vp8_dx(); |
78 | } | 78 | } |
79 | static const vpx_codec_iface_t *video_codec_encoder_interface(void) | 79 | static vpx_codec_iface_t *video_codec_encoder_interface(void) |
80 | { | 80 | { |
81 | return vpx_codec_vp8_cx(); | 81 | return vpx_codec_vp8_cx(); |
82 | } | 82 | } |