summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2012-07-14 11:00:24 -0400
committerGregory Maxwell <greg@xiph.org>2012-07-14 11:00:24 -0400
commitce878836864b1db3f2bf01575a36a2b230668bd8 (patch)
tree5e2bf7b15b5f15baef0297cc2b11582972aee162 /tests
parent619aa8b26812c4dc7b344441ee9f315b2019f15c (diff)
downloadopus-ce878836864b1db3f2bf01575a36a2b230668bd8.tar.gz
Fix headers by mingw broken by recent win32 changes.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_decode.c2
-rw-r--r--tests/test_opus_encode.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c
index 74508a0e..ea970927 100644
--- a/tests/test_opus_decode.c
+++ b/tests/test_opus_decode.c
@@ -36,7 +36,7 @@
#include <math.h>
#include <string.h>
#include <time.h>
-#ifndef _WIN32
+#if (!defined WIN32 && !defined _WIN32) || defined(__MINGW32__)
#include <unistd.h>
#endif
#include "opus.h"
diff --git a/tests/test_opus_encode.c b/tests/test_opus_encode.c
index 7d2ad655..9e1565dc 100644
--- a/tests/test_opus_encode.c
+++ b/tests/test_opus_encode.c
@@ -36,7 +36,7 @@
#include <math.h>
#include <string.h>
#include <time.h>
-#ifndef _WIN32
+#if (!defined WIN32 && !defined _WIN32) || defined(__MINGW32__)
#include <unistd.h>
#endif
#include "opus_multistream.h"