]> Pileus Git - ~andy/gtk/blobdiff - gdk/win32/gdkinput.c
Support added for building using a GNU toolchain on Win32,
[~andy/gtk] / gdk / win32 / gdkinput.c
index e6369c73e4d42205a9e7868c50ddf7421352cddc..70063a7a724841b35d1164495a07543ec321e943 100644 (file)
@@ -1460,20 +1460,24 @@ gdk_input_exit (void)
       HCTX *hctx = (HCTX *) tmp_list->data;
       BOOL result;
 
+#ifdef _MSC_VER
       /* For some reason WTEnable and/or WTClose tend to crash here.
        * Protect with __try/__except to avoid a message box.
        */
       __try {
+#endif /* _MSC_VER */
 #if 0
         WTEnable (*hctx, FALSE);
 #endif
        result = WTClose (*hctx);
+#ifdef _MSC_VER
       }
       __except (/* GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION ? */
                 EXCEPTION_EXECUTE_HANDLER /*: 
                 EXCEPTION_CONTINUE_SEARCH */) {
        result = FALSE;
       }
+#endif /* _MSC_VER */
       if (!result)
        g_warning ("gdk_input_exit: Closing Wintab context %#x failed", *hctx);
       g_free (hctx);