Don't test int64_t if it does not exist.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Jun 2009 09:57:05 +0000 (11:57 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Jun 2009 09:57:05 +0000 (11:57 +0200)
ChangeLog
tests/test-alignof.c

index a5af1c565cbd5ba54670359104e61ae5b5007acb..b47d66dc5dc82e62149936e2e14edba1e66ff713 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-07  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-alignof.c: Don't test int64_t if it does not exist.
+       Reported by Eric Blake.
+
 2009-06-06  Eric Blake  <ebb9@byu.net>
 
        test-alignof: fix typo with long double
index 8bd5bc19d3f8044cbc9b686bbab3d7f8c730faca..d42bdf5e643f5981b1c00ec420ba5892845d94c2 100644 (file)
@@ -44,7 +44,9 @@ CHECK (long)
 CHECK (float)
 CHECK (double)
 CHECK (longdouble)
+#ifdef INT64_MAX
 CHECK (int64_t)
+#endif
 CHECK (struct1)
 CHECK (struct2)
 CHECK (struct3)