Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'skypeweb/libskypeweb.h')
-rw-r--r--skypeweb/libskypeweb.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/skypeweb/libskypeweb.h b/skypeweb/libskypeweb.h
index e38739d..190a8c5 100644
--- a/skypeweb/libskypeweb.h
+++ b/skypeweb/libskypeweb.h
@@ -28,6 +28,7 @@
#include <glib.h>
+#include <inttypes.h>
#include <errno.h>
#include <string.h>
#include <glib/gi18n.h>
@@ -45,6 +46,17 @@
# endif /* __GNUC__ >= 4 */
#endif /* G_GNUC_NULL_TERMINATED */
+// workaround for MinGW32 which doesn't support "%zu"; see also https://stackoverflow.com/a/44383330
+#ifdef _WIN32
+# ifdef _WIN64
+# define PRI_SIZET PRIu64
+# else
+# define PRI_SIZET PRIu32
+# endif
+#else
+# define PRI_SIZET "zu"
+#endif
+
#include "purplecompat.h"
#ifdef _WIN32