]> git.sesse.net Git - vlc/blobdiff - bin/cachegen.c
direct3d11: code cleaning and typos
[vlc] / bin / cachegen.c
index 383b05e878e1295cf4de7090601add43033da47b..8e72bf40b27d9638ee9284b49506e2e81788ce21 100644 (file)
 #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)
 {
@@ -47,6 +49,9 @@ static void usage (const char *path)
 
 int main (int argc, char *argv[])
 {
+#ifdef WIN32
+    SetErrorMode(SEM_FAILCRITICALERRORS);
+#endif
     static const struct option opts[] =
     {
         { "force",      no_argument,       NULL, 'f' },