shithub: opus

Download patch

ref: ce878836864b1db3f2bf01575a36a2b230668bd8
parent: 619aa8b26812c4dc7b344441ee9f315b2019f15c
author: Gregory Maxwell <[email protected]>
date: Sat Jul 14 07:00:24 EDT 2012

Fix headers by mingw broken by recent win32 changes.

--- 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"
--- 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"