diff libpurple/protocols/gg/lib/libgadu.h @ 31837:0efc07144f2f

Hopefully fix some long-running issues with some Gadu-Gadu functionality not working on Windows. This fixes the struct packing to match what libgadu expects it to be. Big thanks goes to "matekm" for figuring out what the problem was and testing. (hopefully) Fixes #11958, #6297
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 16 Mar 2011 01:46:12 +0000
parents f3baa0787399
children 93b08d43f684
line wrap: on
line diff
--- a/libpurple/protocols/gg/lib/libgadu.h	Tue Mar 15 04:36:30 2011 +0000
+++ b/libpurple/protocols/gg/lib/libgadu.h	Wed Mar 16 01:46:12 2011 +0000
@@ -33,10 +33,11 @@
 #ifndef __GG_LIBGADU_H
 #define __GG_LIBGADU_H
 
-#ifdef __cplusplus
 #ifdef _WIN32
 #pragma pack(push, 1)
 #endif
+
+#ifdef __cplusplus
 extern "C" {
 #endif
 
@@ -2056,10 +2057,11 @@
 
 #ifdef __cplusplus
 }
+#endif
+
 #ifdef _WIN32
 #pragma pack(pop)
 #endif
-#endif
 
 #endif /* __GG_LIBGADU_H */