summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/libgadu
diff options
context:
space:
mode:
authorSzymon Tokarz <wsx22@o2.pl>2016-06-19 00:50:49 +0000
committerSzymon Tokarz <wsx22@o2.pl>2016-06-19 00:50:49 +0000
commit58613ba2100154117afdffe63853bbb95a2901da (patch)
treef6013a156869edd3549351cb91cce38556352c2e /protocols/Gadu-Gadu/src/libgadu
parent7ca306fd83e41b3ee0e45f24c17bd2b04d0fe87e (diff)
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
Diffstat (limited to 'protocols/Gadu-Gadu/src/libgadu')
-rw-r--r--protocols/Gadu-Gadu/src/libgadu/win32.h7
1 files changed, 4 insertions, 3 deletions
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)