mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-11-30 21:24:13 +08:00
svn merge -r 999:1000 $SO/trunk/openvpn .
(Fixed 64-bit counter bug on Windows) git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1002 e7ae566f-a301-0410-adde-c780ea21d3b5
This commit is contained in:
parent
fc1f8ad57e
commit
b9baa4d9ca
15
common.h
15
common.h
@ -26,9 +26,19 @@
|
||||
#define COMMON_H
|
||||
|
||||
/*
|
||||
* Statistics counters.
|
||||
* Statistics counters and associated printf formats.
|
||||
*/
|
||||
typedef unsigned long long int counter_type;
|
||||
#ifdef USE_64_BIT_COUNTERS
|
||||
typedef unsigned long long int counter_type;
|
||||
# ifdef WIN32
|
||||
# define counter_format "%I64u"
|
||||
# else
|
||||
# define counter_format "%llu"
|
||||
# endif
|
||||
#else
|
||||
typedef unsigned int counter_type;
|
||||
# define counter_format "%u"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Time intervals
|
||||
@ -43,7 +53,6 @@ typedef int interval_t;
|
||||
/*
|
||||
* Printf formats for special types
|
||||
*/
|
||||
#define counter_format "%llu"
|
||||
#define ptr_format "0x%08lx"
|
||||
#define time_format "%lu"
|
||||
#define fragment_header_format "0x%08x"
|
||||
|
Loading…
Reference in New Issue
Block a user