Windows compiles! (w/Visual Studio 2012) That's about all it does, but it's a start.
This commit is contained in:
parent
5076c75b07
commit
d6414c9ff7
30 changed files with 191 additions and 87 deletions
|
@ -86,9 +86,15 @@ bool Network::Certificate::qualifyMembership(const Network::Certificate &mc) con
|
|||
if (fabs(my - their) > delta)
|
||||
return false;
|
||||
} else {
|
||||
#ifdef __WINDOWS__
|
||||
int64_t my = _strtoi64(myField->second.c_str(),(char **)0,10);
|
||||
int64_t their = _strtoi64(theirField->second.c_str(),(char **)0,10);
|
||||
int64_t delta = _strtoi64(deltaField->second.c_str(),(char **)0,10);
|
||||
#else
|
||||
int64_t my = strtoll(myField->second.c_str(),(char **)0,10);
|
||||
int64_t their = strtoll(theirField->second.c_str(),(char **)0,10);
|
||||
int64_t delta = strtoll(deltaField->second.c_str(),(char **)0,10);
|
||||
#endif
|
||||
if (my > their) {
|
||||
if ((my - their) > delta)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue