From: Bart V. A. <bva...@ac...> - 2010-02-19 18:44:39
|
On Fri, Feb 19, 2010 at 7:14 PM, Magnus Fromreide <ma...@ly...>wrote: > On Fri, 2010-02-19 at 12:35 +0000, bva...@us... wrote: > > Revision: 18166 > > > http://net-snmp.svn.sourceforge.net/net-snmp/?rev=18166&view=rev > > Author: bvassche > > Date: 2010-02-19 12:35:03 +0000 (Fri, 19 Feb 2010) > > > > Log Message: > > ----------- > > Backported r17869: changed the return type of strtoull() from 'unsigned > > long long' (which is not ANSI C) > > That is wrong - long long is in iso 9899:1999 that has been around since > 1999. That is about as ANSI as you get. > I was referring to C89, not to C99. "long long" has been introduced in C99. > > to 'uint64_t' (declared in <net-snmp/net-snmp-config.h>). This change > > makes the Net-SNMP source code compile again on Windows systems. > > That Microsoft, against user outcry, have chosen not to implement it in > their compilers (it might be in the 2008 or 2010 compiler) is another > issue and that motivates the change. > MSVC 6.0 does not recognize "long long", while more recent Microsoft compilers recognize this datatype. It would make several Net-SNMP maintainers happy if support for MSVC 6 could be dropped. Bart. |