]> git.lizzy.rs Git - rudp.git/blobdiff - platform_adpt.c
Switch to CMake
[rudp.git] / platform_adpt.c
index 27b5a17d5ce476cd42f620d3f0467c4854bcd022..758f16fa38b7f6ca8c99e0cb9dd81c96a1664247 100644 (file)
@@ -1,7 +1,7 @@
 #include "platform_adpt.h"
 #include <stdlib.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 
 void PA_NetLibInit()
 {
@@ -181,7 +181,7 @@ void RWLockUnlock(RWLOCK *pLock)
 
 
 /////////////////////////////////////////////////////////
-#elif defined(__LINUX__) || defined(__ANDROID__)
+#elif defined(__linux__)
 
 BOOL PA_EventWaitTimed(PA_EVENT e, DWORD ms)
 {
@@ -327,7 +327,7 @@ int PA_SocketSetLinger(PA_SOCKET s, int onoff, int linger)
 {
        struct linger opt = { onoff, linger };
        return setsockopt(s, SOL_SOCKET, SO_LINGER, 
-#ifdef WIN32
+#ifdef _WIN32
                (const char*)&opt, 
 #else
                &opt,