diff options
author | carmen rocco <ix9@users.sourceforge.net> | 2004-05-22 14:04:17 +0000 |
---|---|---|
committer | carmen rocco <ix9@users.sourceforge.net> | 2004-05-22 14:04:17 +0000 |
commit | c08df8dda4424f84dbf34df69c71634d408eba7c (patch) | |
tree | e413b56e725312fd3dd03965ee5b0ce21b4f6dd5 /mp3live~/mp3streamin~.c | |
parent | 43fe56f639ea3a24954859420b5b329392168cb3 (diff) |
making mp3*~ work on windows
svn path=/trunk/externals/unauthorized/; revision=1755
Diffstat (limited to 'mp3live~/mp3streamin~.c')
-rw-r--r-- | mp3live~/mp3streamin~.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/mp3live~/mp3streamin~.c b/mp3live~/mp3streamin~.c index 0d88096..74a11f4 100644 --- a/mp3live~/mp3streamin~.c +++ b/mp3live~/mp3streamin~.c @@ -51,18 +51,15 @@ #include <unistd.h> #include <fcntl.h> #include <stdio.h> -#include "mpg123.h" /* mpg123 decoding library from lame 3.92 */ -#include "mpglib.h" /* mpglib decoding library from lame 3.92 */ -#include "interface.h" /* mpglib decoding library from lame 3.92 */ #define SOCKET_ERROR -1 #else #include <winsock.h> +#define MSG_NOSIGNAL 0 +#define SOL_TCP IPPROTO_TCP #endif - -#ifdef NT -#pragma warning( disable : 4244 ) -#pragma warning( disable : 4305 ) -#endif +#include "mpg123.h" /* mpg123 decoding library from lame 3.92 */ +#include "mpglib.h" /* mpglib decoding library from lame 3.92 */ +#include "interface.h" /* mpglib decoding library from lame 3.92 */ #define MIN_AUDIO_INPUT 8064 // we must a least have 8 chunks to play a correct sound #define INPUT_BUFFER_SIZE MIN_AUDIO_INPUT |