Fix headers by mingw broken by recent win32 changes.
authorGregory Maxwell <greg@xiph.org>
Sat, 14 Jul 2012 15:00:24 +0000 (11:00 -0400)
committerGregory Maxwell <greg@xiph.org>
Sat, 14 Jul 2012 15:00:24 +0000 (11:00 -0400)
tests/test_opus_decode.c
tests/test_opus_encode.c

index 74508a0..ea97092 100644 (file)
@@ -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"
index 7d2ad65..9e1565d 100644 (file)
@@ -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"