summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-11-02 00:54:02 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-11-02 00:54:02 +0000
commit76433d5365b89f45c6ccd51e68c26ed3c59889bc (patch)
tree9fd7e229913a0253669ad6294c091f0e22017dc8 /configure.in
parent3f1a49ea41a20dacbabea33d4dbcbd62c8c4bb2b (diff)
Fix 64bit printing for MSVC builds (#119292, Hans Breuer):
Sun Nov 2 01:47:31 2003 Matthias Clasen <maclas@gmx.de> Fix 64bit printing for MSVC builds (#119292, Hans Breuer): * configure.in (HAVE_INT64_AND_I64): Define for MSVC to include support for printing __int64 with format %I64 in the gnulib printf wrappers. * glib/gnulib/printf-args.h (enum arg_type): Add TYPE_INT64 and TYPE_UINT64. * glib/gnulib/printf-args.h (struct argument): Add a_int64 and a_uint64 members. * glib/gnulib/printf-args.c (printf_fetchargs): Support TYPE_INT64 and TYPE_UINT64. * glib/gnulib/printf-parse.c (printf_parse): Parse I64 format modifier and map formats to TYPE_INT64. * glib/gnulib/vasnprintf.c (vasnprintf): Print TYPE_INT64 with format modifier I64. * glib/gnulib/README: Document the __int64 support.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 5db6be041..0ea2d1d9b 100644
--- a/configure.in
+++ b/configure.in
@@ -537,6 +537,7 @@ elif test x$ac_cv_sizeof___int64 = x8; then
glib_cv_long_long_format=I64
AC_MSG_RESULT(%${glib_cv_long_long_format}u)
AC_DEFINE(HAVE_LONG_LONG_FORMAT,1,[define if system printf can print long long])
+ AC_DEFINE(HAVE_INT64_AND_I64,1,[define to support printing __int64 with format I64])
fi
dnl long doubles were not used, and a portability problem