>>>>> On Thu, 24 Jun 2010 12:14:55 +0200, Jan Safranek <jsafr...@redhat.com> 
>>>>> said:

JS> I'd try to avoid such flags if possible... What about #ifdef
JS> HAVE_INT64 and HAVE_STRTOLL, i.e. using int64_t and strtoll if
JS> available and int as fallback?

The other option that we know is portable is to use the internal 64-bit
data types.  They're unfortunately much more of a pain to use (since you
have to use a function to even do a + operation) but they're still much
more portable than only supporting the needed ranges on "lucky" systems
that have 64 bit support.
-- 
Wes Hardaker
Please mail all replies to net-snmp-coders@lists.sourceforge.net

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to