mirror of
https://github.com/hufrea/byedpi.git
synced 2025-03-30 17:13:27 +03:00
Use GetLastError in uniperror
This commit is contained in:
parent
6b484d5988
commit
7ebdd9c8e1
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue