diff --git a/uppsrc/Core/Core.h b/uppsrc/Core/Core.h index 601bb805c..a80f0fda5 100644 --- a/uppsrc/Core/Core.h +++ b/uppsrc/Core/Core.h @@ -296,7 +296,7 @@ static const MemDiagCls sMemDiagHelper__upp__; //some global definitions -#if !defined(STLPORT) +#if !defined(STLPORT) && _MSC_VER < 1600 inline UPP::int64 abs(UPP::int64 x) { return x < 0 ? -x : x; } #endif diff --git a/uppsrc/Web/socket.h b/uppsrc/Web/socket.h index 2b9c59aeb..bb8011921 100644 --- a/uppsrc/Web/socket.h +++ b/uppsrc/Web/socket.h @@ -129,7 +129,7 @@ public: #if defined(PLATFORM_WIN32) static int GetErrorCode() { return WSAGetLastError(); } -#define SOCKERR(x) COMBINE(WSA, x) +#define SOCKERR(x) WSA##x #elif defined(PLATFORM_POSIX) static int GetErrorCode() { return errno; } #define SOCKERR(x) x