diff options
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 4 |
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 |