Fix V8 mingw32 build

Reported to V8
http://code.google.com/p/v8/issues/detail?id=1508
pull/5370/head
Henry Rawas 2011-06-29 11:12:58 -07:00 committed by Ryan Dahl
parent 1cb7b67ac3
commit 2e1af6df49
1 changed files with 9 additions and 0 deletions

View File

@ -123,6 +123,15 @@ int strncasecmp(const char* s1, const char* s2, int n) {
// the Microsoft Visual Studio C++ CRT.
#ifdef __MINGW32__
namespace v8 {
namespace internal {
intptr_t OS::MaxVirtualMemory() {
return 0;
}
}
}
int localtime_s(tm* out_tm, const time_t* time) {
tm* posix_local_time_struct = localtime(time);
if (posix_local_time_struct == NULL) return 1;