aboutsummaryrefslogtreecommitdiff
path: root/mp3live~/mp3streamout~.c
diff options
context:
space:
mode:
Diffstat (limited to 'mp3live~/mp3streamout~.c')
-rw-r--r--mp3live~/mp3streamout~.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mp3live~/mp3streamout~.c b/mp3live~/mp3streamout~.c
index 0ed908a..33555ce 100644
--- a/mp3live~/mp3streamout~.c
+++ b/mp3live~/mp3streamout~.c
@@ -40,7 +40,12 @@
#include <malloc.h>
#endif
#include <ctype.h>
-#ifdef UNIX
+#ifdef _WIN32
+#include <io.h>
+#include <windows.h>
+#include <winsock.h>
+#include <windef.h>
+#else
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -48,14 +53,9 @@
#include <time.h>
#include <sys/time.h>
#define SOCKET_ERROR -1
-#else
-#include <io.h>
-#include <windows.h>
-#include <winsock.h>
-#include <windef.h>
#endif
-#if defined(__APPLE__) || defined(WIN32)
+#if defined(__APPLE__) || defined(_WIN32)
#define MSG_NOSIGNAL 0
#endif