Use GetLastError in uniperror

This commit is contained in:
ruti 2024-03-03 16:52:40 +03:00
parent 6b484d5988
commit 7ebdd9c8e1

View File

@ -18,7 +18,7 @@
#ifdef _WIN32 #ifdef _WIN32
#define uniperror(str) \ #define uniperror(str) \
fprintf(stderr, "%s: %d\n", str, WSAGetLastError()) fprintf(stderr, "%s: %d\n", str, GetLastError())
#else #else
#ifdef ANDROID_APP #ifdef ANDROID_APP
#define uniperror(str) \ #define uniperror(str) \