more windows port fixes

This commit is contained in:
Joel Dice
2007-10-24 11:24:19 -06:00
parent f2f453cf75
commit eaf1d205cd
10 changed files with 73 additions and 42 deletions

View File

@ -11,9 +11,12 @@
#ifdef WIN32
# include "windows.h"
#else
# undef JNIEXPORT
# define JNIEXPORT __attribute__ ((visibility("default")))
#endif
#ifdef __MINGW32__
#ifdef WIN32
# define SO_PREFIX ""
#else
# define SO_PREFIX "lib"
@ -27,9 +30,6 @@
# define SO_SUFFIX ".so"
#endif
#undef JNIEXPORT
#define JNIEXPORT __attribute__ ((visibility("default")))
extern "C" JNIEXPORT jstring JNICALL
Java_java_lang_System_getProperty(JNIEnv* e, jclass, jint code)
{
@ -55,7 +55,6 @@ Java_java_lang_System_getProperty(JNIEnv* e, jclass, jint code)
case JavaIoTmpdir: {
TCHAR buffer[MAX_PATH];
GetTempPath(MAX_PATH, buffer);
fprintf(stderr, "tmpdir: %s\n", buffer);
return e->NewStringUTF(buffer);
}