aboutsummaryrefslogtreecommitdiff
path: root/mp3amp~/mp3amp~.c
diff options
context:
space:
mode:
authorcarmen rocco <ix9@users.sourceforge.net>2004-05-22 14:04:17 +0000
committercarmen rocco <ix9@users.sourceforge.net>2004-05-22 14:04:17 +0000
commitc08df8dda4424f84dbf34df69c71634d408eba7c (patch)
treee413b56e725312fd3dd03965ee5b0ce21b4f6dd5 /mp3amp~/mp3amp~.c
parent43fe56f639ea3a24954859420b5b329392168cb3 (diff)
making mp3*~ work on windows
svn path=/trunk/externals/unauthorized/; revision=1755
Diffstat (limited to 'mp3amp~/mp3amp~.c')
-rw-r--r--mp3amp~/mp3amp~.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mp3amp~/mp3amp~.c b/mp3amp~/mp3amp~.c
index a8d8ff7..bf93d98 100644
--- a/mp3amp~/mp3amp~.c
+++ b/mp3amp~/mp3amp~.c
@@ -52,6 +52,8 @@
#define SOCKET_ERROR -1
#else
#include <winsock.h>
+#include <winbase.h>
+#include <io.h>
#endif
#ifdef NT
@@ -64,8 +66,11 @@
#endif
#ifdef NT
#define STRDUP _strdup
+#define MSG_NOSIGNAL 0
+#define sys_closesocket closesocket
#endif
+
#define LAME_AUDIO_CHUNK_SIZE 1152
#define MIN_AUDIO_INPUT 2*LAME_AUDIO_CHUNK_SIZE /* we must have at least n chunks to play a steady sound */
#define INPUT_BUFFER_SIZE 131072 /* data received on the socket : 128k */