fix native Windows GCC 3.4 build

This commit is contained in:
Joel Dice 2010-11-12 16:53:16 -07:00
parent 8ca5e9780e
commit 26a59612bb
2 changed files with 6 additions and 6 deletions

View File

@ -233,7 +233,7 @@ ifeq ($(platform),windows)
# ranlib = i586-mingw32msvc-ranlib
# strip = i586-mingw32msvc-strip
else
build-platform = windows
build-system = windows
common-cflags += "-I$(JAVA_HOME)/include/win32"
build-cflags = $(common-cflags) -I$(src) -mthreads
ifeq ($(build-platform),cygwin)

View File

@ -6134,11 +6134,11 @@ compileVirtualMethod(MyThread* t)
uint64_t
invokeNativeFast(MyThread* t, object method, void* function)
{
return reinterpret_cast<FastNativeFunction>(function)
(t, method,
static_cast<uintptr_t*>(t->stack)
+ t->arch->frameFooterSize()
+ t->arch->frameReturnAddressSize());
FastNativeFunction f; memcpy(&f, &function, sizeof(void*));
return f(t, method,
static_cast<uintptr_t*>(t->stack)
+ t->arch->frameFooterSize()
+ t->arch->frameReturnAddressSize());
}
uint64_t