From ce878836864b1db3f2bf01575a36a2b230668bd8 Mon Sep 17 00:00:00 2001
From: Gregory Maxwell <greg@xiph.org>
Date: Sat, 14 Jul 2012 11:00:24 -0400
Subject: [PATCH] Fix headers by mingw broken by recent win32 changes.

---
 tests/test_opus_decode.c | 2 +-
 tests/test_opus_encode.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c
index 74508a0e3..ea970927b 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 7d2ad655a..9e1565dc0 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"
-- 
GitLab