#include <string.h> /* for bzero on BSD systems */
#endif
-#ifdef _MSC_VER
-#include <process.h> /* For _getpid() */
+#ifdef NATIVE_WIN32
+# define STRICT /* Strict typing, please */
+# include <windows.h>
+# include <process.h> /* For _getpid() */
#endif
#ifndef NO_FD_SET
void
g_on_error_query (const gchar *prg_name)
{
+#ifndef NATIVE_WIN32
static const gchar *query1 = "[E]xit, [H]alt";
static const gchar *query2 = ", show [S]tack trace";
static const gchar *query3 = " or [P]roceed";
}
else
goto retry;
+#else
+ if (!prg_name)
+ prg_name = g_get_prgname ();
+
+ MessageBox (NULL, "Terminating",
+ (prg_name && *prg_name) ? prg_name : NULL,
+ MB_OK|MB_ICONERROR);
+ _exit(0);
+#endif
}
void