lib: On Windows, call _strtoui64() instead of strtoull

svn path=/trunk/boinc/; revision=24038
This commit is contained in:
Charlie Fenton 2011-08-24 23:25:36 +00:00
parent 2f881f920d
commit ad3fb32f17
2 changed files with 5 additions and 2 deletions

View File

@ -5035,7 +5035,8 @@ Charlie 24 Aug 2011
Charlie 24 Aug 2011
- lib, client: revert recent changes to restore unsigned long long so
we can determine cause of and try to fix Linux build errors.
we can determine cause of and try to fix Linux build errors.
- lib: On Windows, call _strtoui64() instead of strtoull.
lib/
parse.h

View File

@ -78,7 +78,9 @@ inline bool match_tag(const std::string &s, const char* tag) {
return match_tag(s.c_str(), tag);
}
#ifndef __APPLE__
#ifdef _WIN32
#define strtoull _strtoui64
#elif !defined(__APPLE__)
inline unsigned long long strtoull(const char *s, char **, int) {
char buf[64];
char *p;