From 58613ba2100154117afdffe63853bbb95a2901da Mon Sep 17 00:00:00 2001 From: Szymon Tokarz Date: Sun, 19 Jun 2016 00:50:49 +0000 Subject: Gadu-Gadu protocol Fix strerror related loging - GG\libgadu code uses ansi logging (enabled only in debug mode) - use: as_strerror(errno) to properly override strerror(errno) - use properly strerror, _tcserror, as_strerror, ws_strerror in GG code git-svn-id: http://svn.miranda-ng.org/main/trunk@17008 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/libgadu/win32.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'protocols/Gadu-Gadu/src/libgadu') diff --git a/protocols/Gadu-Gadu/src/libgadu/win32.h b/protocols/Gadu-Gadu/src/libgadu/win32.h index d432a359ac..fdc5017279 100644 --- a/protocols/Gadu-Gadu/src/libgadu/win32.h +++ b/protocols/Gadu-Gadu/src/libgadu/win32.h @@ -59,10 +59,11 @@ #define WNOHANG WHOHANG #define SHUT_RDWR 2 -/* Defined in gg.c custom error reporting function */ +/* Defined in gg.c custom error reporting function, override only at \libgadu\ dir */ +#define GG_CONFIG_MIRANDA #ifdef GG_CONFIG_MIRANDA -char *ws_strerror(int code); -#define strerror(x) ws_strerror(x) +char *as_strerror(int code); +#define strerror(x) as_strerror(x) #endif #define fork() (-1) -- cgit v1.2.3