+}
+int main(int argc, char *argv[])
+{
+ /* We do this dance with argc and argv as otherwise the SEH exception
+ stuff (the BEGIN/END CATCH below) on Windows gets confused */
+ progargc = argc;
+ progargv = argv;
+
+#if defined(mingw32_HOST_OS)
+ BEGIN_CATCH
+#endif
+ real_main();
+#if defined(mingw32_HOST_OS)
+ END_CATCH
+#endif
+ return 0; /* not reached, but keeps gcc -Wall happy */