aboutsummaryrefslogtreecommitdiff
path: root/mp3live~/mp3fileout~.c
diff options
context:
space:
mode:
Diffstat (limited to 'mp3live~/mp3fileout~.c')
-rw-r--r--mp3live~/mp3fileout~.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mp3live~/mp3fileout~.c b/mp3live~/mp3fileout~.c
index e8e1c6b..bd2d431 100644
--- a/mp3live~/mp3fileout~.c
+++ b/mp3live~/mp3fileout~.c
@@ -36,7 +36,11 @@
#include <sys/types.h>
#include <string.h>
-#ifdef UNIX
+#ifdef _WIN32
+#include <winsock.h>
+#include <io.h>
+#include <fcntl.h>
+#else
#include <sys/socket.h>
#include <errno.h>
#include <netinet/in.h>
@@ -48,13 +52,9 @@
#include <fcntl.h>
#include <stdio.h>
#define SOCKET_ERROR -1
-#else
-#include <winsock.h>
-#include <io.h>
-#include <fcntl.h>
-#endif
+#endif /* _WIN32 */
-#if defined(__APPLE__) || defined(WIN32)
+#if defined(__APPLE__) || defined(_WIN32)
#define MSG_NOSIGNAL 0
#endif