diff --git a/error.h b/error.h index 2875f37..3c7ce1c 100644 --- a/error.h +++ b/error.h @@ -18,7 +18,7 @@ #ifdef _WIN32 #define uniperror(str) \ - fprintf(stderr, "%s: %d\n", str, WSAGetLastError()) + fprintf(stderr, "%s: %d\n", str, GetLastError()) #else #ifdef ANDROID_APP #define uniperror(str) \