aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-05-29 23:29:20 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-05-29 23:29:20 +0000
commita1d2d9c75b787deeccddbca65f3240155637e1bf (patch)
treec969dd53e8a21d2cead00e279626ef6ba0f7f63f /acinclude.m4
parent5eb2b42d3016469b314d9b67e90aac8c5ec8012f (diff)
we dont link with g_snprintf in the configure for gtk1-2 so fall back to
snprintf instead svn path=/trunk/; revision=21995
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 9647b6a751..383ec67d18 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1588,7 +1588,11 @@ AC_DEFUN([AC_WIRESHARK_CHECK_64BIT_FORMAT],
{
guint64 t = 1;
char strbuf[16+1];
+ #if GTK_MAJOR_VERSION >= 2
g_snprintf(strbuf, sizeof strbuf, "%016$1x", t << 32);
+ #else
+ snprintf(strbuf, sizeof strbuf, "%016$1x", t << 32);
+ #endif
if (strcmp(strbuf, "0000000100000000") == 0)
exit(0);
else