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 <egg...@cs.ucla.edu>
> 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
po...@thewrittenword.com

Reply via email to