[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #error "This file assumes that 'int' has exactly 32 bits.

From: Eric Blake
Subject: Re: #error "This file assumes that 'int' has exactly 32 bits.
Date: Fri, 09 Aug 2013 09:29:38 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7

On 08/09/2013 09:25 AM, Eric Blake wrote:
> Still need more information.  What does this do when compiled with your
> cross-compiler, then run on the target?
> #include <stdio.h>
> #include <limits.h>
> #include <stdint.h>
> int main(void) {
>   printf("%zu %zu %zu %zu\n", sizeof(short), sizeof(int), sizeof(long),
>     sizeof(long long));
>   printf("

Apologies for pasting an incomplete version (serves me right for using
xclip on the file rather than copying what was in my editor).  I meant
that line to be:

    printf ("%x %x %x %x\n", INT_MIN, INT32_MIN, INT_MAX, INT32_MAX);

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]