Small things.
This commit is contained in:
parent
ef65a64443
commit
96f5d98fc2
2 changed files with 10 additions and 3 deletions
|
|
@ -40,7 +40,7 @@ extern void bin2hex(char *src, char *dst, int length);
|
|||
|
||||
#ifdef HAVE_MINGW
|
||||
extern char *winerror(int);
|
||||
#define strerror(x) (x>0?strerror(x):winerror(GetLastError()))
|
||||
#define strerror(x) ((x)>0?strerror(x):winerror(GetLastError()))
|
||||
#endif
|
||||
|
||||
#endif /* __TINC_UTILS_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue