From b85a88089c21b5141612d8302088c5a0c05fabed Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 10 Mar 2020 23:13:52 +0000 Subject: [PATCH] Fix Visual Studio .NET 2003 compatibility Apparently `errno_t` doesn't exist here either? --- miniaudio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index 8e5a6dcf..be58ceb8 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -6781,7 +6781,7 @@ static ma_result ma_result_from_errno(int e) MA_API ma_result ma_fopen(FILE** ppFile, const char* pFilePath, const char* pOpenMode) { -#if _MSC_VER && _MSC_VER >= 1300 +#if _MSC_VER && _MSC_VER >= 1400 errno_t err; #endif @@ -6793,7 +6793,7 @@ MA_API ma_result ma_fopen(FILE** ppFile, const char* pFilePath, const char* pOpe return MA_INVALID_ARGS; } -#if _MSC_VER && _MSC_VER >= 1300 +#if _MSC_VER && _MSC_VER >= 1400 err = fopen_s(ppFile, pFilePath, pOpenMode); if (err != 0) { return ma_result_from_errno(err);