bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH v7 01/11] stdint: check _INTPTR_T_DECLARED before defining in


From: KO Myung-Hun
Subject: Re: [PATCH v7 01/11] stdint: check _INTPTR_T_DECLARED before defining intptr_t and uintptr_t
Date: Fri, 15 Jan 2016 10:27:53 +0900
User-agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.6esrpre) Gecko/20120715 Firefox/10.0.6esrpre SeaMonkey/2.7.2


Paul Eggert wrote:
> Wouldn't something like the attached be simpler?
> 
> stdint.diff
> 
> 
> diff --git a/lib/stdint.in.h b/lib/stdint.in.h
> index d20d1c7..22c2d70 100644
> --- a/lib/stdint.in.h
> +++ b/lib/stdint.in.h
> @@ -288,12 +288,14 @@ typedef gl_uint_fast32_t gl_uint_fast16_t;
>  
>  /* 7.18.1.4. Integer types capable of holding object pointers */
>  
> +#ifndef _INTPTR_T_DECLARED
>  #undef intptr_t
>  #undef uintptr_t
>  typedef long int gl_intptr_t;
>  typedef unsigned long int gl_uintptr_t;
>  #define intptr_t gl_intptr_t
>  #define uintptr_t gl_uintptr_t
> +#endif
>  
>  /* 7.18.1.5. Greatest-width integer types */
>  

Updated.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr

Attachment: 0001-stdint-check-_INTPTR_T_DECLARED-before-defining-intp.patch
Description: Source code patch


reply via email to

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