aboutsummaryrefslogtreecommitdiff
path: root/libjava/prims.cc
diff options
context:
space:
mode:
authorAdam Megacz <adam@xwt.org>2002-02-07 05:26:42 +0000
committerAdam Megacz <megacz@gcc.gnu.org>2002-02-07 05:26:42 +0000
commitb8fe3c1e06a23f89a66d280c157fb44c738edbf2 (patch)
treedb9c18a5924f33eb9b557f63d50e0b0489bc296d /libjava/prims.cc
parentdf79080e5f5fb9339dbeaa8b51416b25a055d122 (diff)
downloadgcc-b8fe3c1e06a23f89a66d280c157fb44c738edbf2.zip
gcc-b8fe3c1e06a23f89a66d280c157fb44c738edbf2.tar.gz
gcc-b8fe3c1e06a23f89a66d280c157fb44c738edbf2.tar.bz2
configure.in: Changed mingw) to *mingw*).
2002-02-06 Adam Megacz <adam@xwt.org> * configure.in: Changed mingw) to *mingw*). * win32.cc: Created this file. * win32.h: Created this file. * win32.cc, prims.cc, win32.h (win32_exception_handler): Moved win32_exception_handler from prims.cc to win32.cc, added header in win32.h. * prims.cc: removed some #ifdef-WIN32'd headers which are no longer needed now that we have platform.h From-SVN: r49566
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r--libjava/prims.cc28
1 files changed, 1 insertions, 27 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc
index ec6263c..995206c 100644
--- a/libjava/prims.cc
+++ b/libjava/prims.cc
@@ -9,16 +9,7 @@ Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
#include <config.h>
-
-#ifdef WIN32
-#include <windows.h>
-#undef STRICT
-#endif /* WIN32 */
-
-#ifdef WIN32
-#undef __INSIDE_CYGWIN__
-#include <winsock.h>
-#endif /* WIN32 */
+#include <platform.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -731,23 +722,6 @@ _Jv_ThisExecutable (const char *name)
}
}
-#ifdef WIN32
-
-extern "C" int* win32_get_restart_frame (void *);
-
-LONG CALLBACK
-win32_exception_handler (LPEXCEPTION_POINTERS e)
-{
- if (e->ExceptionRecord->ExceptionCode == EXCEPTION_ACCESS_VIOLATION)
- _Jv_ThrowNullPointerException();
- else if (e->ExceptionRecord->ExceptionCode == EXCEPTION_INT_DIVIDE_BY_ZERO)
- throw new java::lang::ArithmeticException;
- else
- return EXCEPTION_CONTINUE_SEARCH;
-}
-
-#endif
-
#ifndef DISABLE_GETENV_PROPERTIES
static char *