# HG changeset patch # User Stu Tomlinson # Date 1098103975 0 # Node ID 70a82a701aadd6e28970ae32586984dd8630e89d # Parent 84985e2b85cc5a1134976d89d1ddc9f5db54ff98 [gaim-migrate @ 11148] People with Glib < 2.4 need these uglies on HEAD now that Nathan's put his 64bit fixes in. committer: Tailor Script diff -r 84985e2b85cc -r 70a82a701aad src/internal.h --- a/src/internal.h Mon Oct 18 12:51:29 2004 +0000 +++ b/src/internal.h Mon Oct 18 12:52:55 2004 +0000 @@ -126,6 +126,24 @@ #include "win32dep.h" #endif +/* ugly ugly ugly */ +/* This is a workaround for the fact that G_GINT64_MODIFIER and G_GSIZE_FORMAT + * are only defined in Glib >= 2.4 */ +#ifndef G_GINT64_MODIFIER +# if GLIB_SIZEOF_LONG == 8 +# define G_GINT64_MODIFIER "l" +# else +# define G_GINT64_MODIFIER "ll" +# endif +#endif + +#ifndef G_GSIZE_FORMAT +# if GLIB_SIZEOF_LONG == 8 +# define G_GSIZE_FORMAT "lu" +# else +# define G_GSIZE_FORMAT "u" +# endif +#endif #define GAIM_WEBSITE "http://gaim.sourceforge.net/"