Mailinglist Archive: opensuse-amd64 (79 mails)

< Previous Next >
Re: [suse-amd64] Place to put 64bit and 32bit HEADER files
  • From: Andi Kleen <ak@xxxxxxx>
  • Date: Fri, 3 Oct 2003 07:36:56 +0000 (UTC)
  • Message-id: <20031003073655.GG25013@xxxxxxxxxxxxx>
On Thu, Oct 02, 2003 at 11:20:14AM -0700, Stephen Williams wrote:
>
> OK, my product has a header file, _pli_types.h, that is generated
> by configure to account for word size in defining 64bit and 32bit
> types. But if I'm going to support 64 and 32bit compilation on
> AMD64, I'm going to need to do something about that. I may be
> able to resort to inttypes.h for this specific problem, but is
> there a general solution?

configure normally runs test programs.

e.g. run something like

is64bit.c:

int main(void)
{
return sizeof(long)==8 ? 0 : 1;
}

that can you test with an shell if then and generate your include files.

-Andi


< Previous Next >
Follow Ups
References