aboutsummaryrefslogtreecommitdiff
path: root/mp3amp~
diff options
context:
space:
mode:
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 )