bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib stdint.h substitution of int64_t results in a linking error i


From: Peter O'Gorman
Subject: Re: gnulib stdint.h substitution of int64_t results in a linking error in GCC 4.(3|2|0) on OSX
Date: Fri, 24 Dec 2010 13:32:35 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Nov 24, 2010 at 12:07:52PM -0800, Paul Eggert wrote:
> I pushed the following patch; could you please give it a try?
 
> From 531b8a416b6ae40f89808e1db8976eb25972e661 Mon Sep 17 00:00:00 2001
> From: Paul Eggert <address@hidden>
> Date: Wed, 24 Nov 2010 12:05:43 -0800
> Subject: [PATCH] stdint: port to GCC 4.3 + OSX + Octave

> +   int, which would mess up C++ name mangling.  */
> +
> +#if INT64_MAX
> +# define GL_INT64_T
> -typedef unsigned long int gl_uint64_t;

> +#if UINT64_MAX
>  # define GL_UINT64_T
 
Any reason not to #ifdef INT64_MAX/UINT64_MAX instead of plain #if? With
just #if we get preprocessor errors on hpux10.20 with hp cc:

 cc -DHAVE_CONFIG_H -I. -I.. -I./gllib -DASN1_BUILDING -Ae -z +O2 -c
 ASN1.c  +Z -DPIC -o .libs/ASN1.o
cpp: "stdint.h", line 143: warning 2012: Unrepresentable preprocessor
number 9223372036854775807ll.
cpp: "stdint.h", line 143: error 4038: Bad syntax for #if condition.
cpp: "stdint.h", line 166: warning 2012: Unrepresentable preprocessor
number 18446744073709551615ull.
cpp: "stdint.h", line 166: error 4038: Bad syntax for #if condition.

Peter
-- 
Peter O'Gorman
address@hidden



reply via email to

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