On Sat, 2010-10-16 at 23:52 +0200, Magnus Fromreide wrote:
> I found this in r19458
> 
> #if defined(__GNUC__)
> typedef unsigned long netsnmp_uintptr_t;
> #else
> typedef uintptr_t netsnmp_uintptr_t;
> #endif
> #ifndef __cplusplus
> enum {
>     netsnmp_compile_time_uintptr_t_size_check
>     = sizeof(struct { int:-!(sizeof(netsnmp_uintptr_t) >= sizeof(void*)); })
> };
> #endif
> 
> and ended up very confused. I would like to see a motivation for this
> oddity. GNU C do define uintptr_t in inttypes.h and autoconf checks for
> it and defines it if needed so what is the point of netsnmp_uintptr_t?

Oh yes, this patch additionally breaks builds on Solaris 10 using
Sun C 5.7.

/MF


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to