aboutsummaryrefslogtreecommitdiff
path: root/mp3amp~
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-18 18:57:13 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-18 18:57:13 +0000
commitaa82236dd093743bd2973f8b61127582aaf6e96f (patch)
treedc74f2de6e61dc04861b8d6df53daf8ed6feb2ee /mp3amp~
parentb13e2d6c3a525918ed0816c41433509477c9912a (diff)
lots of MinGW fixes for RC6
svn path=/trunk/externals/unauthorized/; revision=4250
Diffstat (limited to 'mp3amp~')
-rw-r--r--mp3amp~/mp3amp~.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mp3amp~/mp3amp~.c b/mp3amp~/mp3amp~.c
index c1f79be..9dfc54e 100644
--- a/mp3amp~/mp3amp~.c
+++ b/mp3amp~/mp3amp~.c
@@ -39,7 +39,11 @@
#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 */
-#ifdef UNIX
+#ifdef _WIN32
+#include <winsock.h>
+#include <winbase.h>
+#include <io.h>
+#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
@@ -51,11 +55,7 @@
#include <ctype.h>
#include <stdlib.h>
#define SOCKET_ERROR -1
-#else
-#include <winsock.h>
-#include <winbase.h>
-#include <io.h>
-#endif
+#endif /* _WIN32 */
#ifdef _MSC_VER
#pragma warning( disable : 4244 )