--- db-4.3.27/libdb_java/db_java_wrap.c Mon Nov 8 17:28:21 2004 +++ db-4.3.27-patched/libdb_java/db_java_wrap.c Mon Nov 15 16:58:53 2004 @@ -11,17 +11,23 @@ #if defined(__GNUC__) typedef long long __int64; /*For gcc on Windows */ #endif #include #include #include - +#if defined(GCJ) && defined(WIN32) /* gcj jni doesn't use __stdcall */ +#undef JNIEXPORT +#undef JNICALL +#define JNIEXPORT +#define JNICALL +#endif + /* Support for throwing Java exceptions */ typedef enum { SWIG_JavaOutOfMemoryError = 1, SWIG_JavaIOException, SWIG_JavaRuntimeException, SWIG_JavaIndexOutOfBoundsException, SWIG_JavaArithmeticException, SWIG_JavaIllegalArgumentException,