OSDN Git Service

2007-12-06 Thomas Quinot <quinot@adacore.com>
[pf3gnuchains/gcc-fork.git] / libjava / win32.cc
index a78f814..6a1c2c7 100644 (file)
@@ -288,21 +288,6 @@ _Jv_platform_nanotime ()
   return _Jv_platform_gettimeofday () * 1000LL;
 }
 
-// The following definitions "fake out" mingw to think that -mthreads
-// was enabled and that mingwthr.dll was linked. GCJ-compiled
-// applications don't need this helper library because we can safely
-// detect thread death (return from Thread.run()).
-
-int _CRT_MT = 1;
-
-extern "C" int
-__mingwthr_key_dtor (DWORD, void (*) (void *))
-{
-  // FIXME: for now we do nothing; this causes a memory leak of
-  //        approximately 24 bytes per thread created.
-  return 0;
-}
-
 static bool dirExists (LPCTSTR dir)
 {
   DWORD dwAttrs = ::GetFileAttributes (dir);
@@ -463,7 +448,7 @@ _Jv_platform_close_on_exec (HANDLE h)
 // defined symbol to that address.  Returns 0 if no object defines this
 // address.
 int
-_Jv_platform_dladdr (const void *addr, _Jv_AddrInfo *info)
+_Jv_platform_dladdr (void *addr, _Jv_AddrInfo *info)
 {
   // Since we do not have dladdr() on Windows, we use a trick involving
   // VirtualQuery() to find the module (EXE or DLL) that contains a given