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 a5af1c5..b47d66d 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 8bd5bc1..d42bdf5 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)