#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
-
#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
+#ifdef WIN32
+# include <windows.h>
+#endif
static void version (void)
{
int main (int argc, char *argv[])
{
+#ifdef WIN32
+ SetErrorMode(SEM_FAILCRITICALERRORS);
+#endif
static const struct option opts[] =
{
{ "force", no_argument, NULL, 'f' },