mpg123: Remove ssize_t fallback, not needed anymore
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 3 Sep 2018 10:34:33 +0000 (16:04 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 4 Sep 2018 07:09:19 +0000 (12:39 +0530)
The mpg123 headers now contain a definition for ssize_t and building
with MSVC fails because of a redefinition for ssize_t

ext/mpg123/gstmpg123audiodec.h

index b865c41..e837a56 100644 (file)
 #ifndef __GST_MPG123_AUDIO_DEC_H__
 #define __GST_MPG123_AUDIO_DEC_H__
 
-/* This is what the visual studio build in mpg123 does before including the
- * original header file. Without this we get syntax errors in the
- * replace_reader function declarations because it doesn't know ssize_t etc.
- * It doesn't realy matter for us if the ssize_t typedef here is correct. */
-#ifdef _MSC_VER
-#include <tchar.h>
-#include <stdlib.h>
-#include <sys/types.h>
-typedef long ssize_t;
-#include <stdint.h>
-#endif
-
 #include <gst/gst.h>
 #include <gst/audio/gstaudiodecoder.h>
 #include <mpg123.h>