mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-22 22:35:39 +00:00
Use GetLastError in uniperror
This commit is contained in:
parent
6b484d5988
commit
7ebdd9c8e1
2
error.h
2
error.h
@ -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) \
|
||||||
|
Loading…
Reference in New Issue
Block a user