On Sat, 21 Aug 2004 01:03:21 +0100 Richard wrote:
RM> I did a bit of investigation on the issue and came up with the following
RM> patch. It uses the C99 macro SCNuMAX to get the appropriate scan
RM> specifier for uintmax_t. How does that look?

I hadn't see that macro before. It is just what we need. The only problem is
that the minimum entry level for compilers has always been ANSI C. I am not
sure that bumping it up to C99 will go over very well.

Checking a few of the sourceforge compile farms hosts reveal that neither
FreeBSD or OpenBSD have SCNuMAX defined in <inttypes.h>. So instead of an
out-and-out replacement, we need to break down and use an ifdef on
__STDC_FORMAT_MACROS to add the new 64-bit compatabile definitions. That should
not break ANSI systems, but work for newer systems too.

Unless anyone has any better ideas?

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to