Some platforms support 64 bit 'long long', but you can not printf or scanf

2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in, tests/type-test.c: Some platforms support 64 bit
	'long long', but you can not printf or scanf them. In that case,
	don't define G_G{UINT|INT}64_FORMAT. Changed the type-test program
	to reflect that.
This commit is contained in:
Sebastian Wilhelmi
2000-09-28 07:45:04 +00:00
committed by Sebastian Wilhelmi
parent 6088718e19
commit abb813df20
10 changed files with 58 additions and 7 deletions

View File

@@ -113,7 +113,7 @@ main (int argc,
g_assert (gu16t1 == gu16t2);
g_assert (gu32t1 == gu32t2);
#ifdef G_HAVE_GINT64
#if defined (G_HAVE_GINT64) && defined (G_GINT64_FORMAT)
gi64t1 = G_GINT64_CONSTANT (-0x3AFAFAFAFAFAFAFA);
gu64t1 = G_GINT64_CONSTANT (0xFAFAFAFAFAFAFAFA);
#define FORMAT64 "%" G_GINT64_FORMAT " %" G_GUINT64_FORMAT "\n"