From cf23deef746f0662dd3ae53bf67b21a9766d8412 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 6 Mar 2017 18:05:06 +0200 Subject: [PATCH] Fixed ssize_t type definition for mpg123 (affects MSVC x64 only) According to MinGW headers (which is used for compiling libmpg123) ssize_t type must be 64-bit in size on 64-bit Windows Moreover it was impossible to build GZDoom with the recent versions of libmpg123 because of wrong type redifinition Tested MP3 music on Deus Vult II with Release x64 and OpenAL backend --- src/sound/mpg123_decoder.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sound/mpg123_decoder.h b/src/sound/mpg123_decoder.h index 051473abb..59e1df2ca 100644 --- a/src/sound/mpg123_decoder.h +++ b/src/sound/mpg123_decoder.h @@ -6,7 +6,8 @@ #ifdef HAVE_MPG123 #ifdef _MSC_VER -typedef int ssize_t; +#include +typedef ptrdiff_t ssize_t; #endif #include "mpg123.h"