[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new module alignof
From: |
Bruno Haible |
Subject: |
Re: new module alignof |
Date: |
Sun, 7 Jun 2009 12:00:24 +0200 |
User-agent: |
KMail/1.9.9 |
Eric Blake wrote:
> I fixed the typo (CHECK only takes a single token argument):
Shame on me.
> > + CHECK (int64_t)
>
> I didn't touch this, but should we still want to cater to C89 platforms
> that lack 64 bit integers
Right you are. Yes, you cannot generally assume the presence of working
int64_t and uint^4_t types. We had trouble on this topic with Solaris cc,
in October 2007.
Bruno
2009-06-07 Bruno Haible <address@hidden>
* tests/test-alignof.c: Don't test int64_t if it does not exist.
Reported by Eric Blake.
*** tests/test-alignof.c.orig 2009-06-07 11:54:52.000000000 +0200
--- tests/test-alignof.c 2009-06-07 11:44:17.000000000 +0200
***************
*** 44,50 ****
--- 44,52 ----
CHECK (float)
CHECK (double)
CHECK (longdouble)
+ #ifdef INT64_MAX
CHECK (int64_t)
+ #endif
CHECK (struct1)
CHECK (struct2)
CHECK (struct3)