]> git.sesse.net Git - vlc/commitdiff
Cleanup previous commit
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 27 May 2008 16:41:42 +0000 (19:41 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 27 May 2008 16:41:42 +0000 (19:41 +0300)
src/winvlc.c

index 6f065a9a2d26b38046266a1e2830f632a1d1c931..810a67aade90809ec9a56048bb506c55352b3726 100644 (file)
@@ -173,21 +173,12 @@ static char **vlc_parse_cmdline( const char *psz_cmdline, int *i_args )
 # define wWinMain WinMain
 #endif
 
-#ifdef IF_MINGW_SUPPORTED_UNICODE
 /*****************************************************************************
  * wWinMain: parse command line, start interface and spawn threads.
  *****************************************************************************/
 int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
                     LPWSTR lpCmdLine, int nCmdShow )
 {
-#else
-int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
-                    LPSTR args, int nCmdShow )
-{
-    /* This makes little sense, but at least it links properly */
-    wchar_t lpCmdLine[strlen(args) * 3];
-    MultiByteToWideChar( CP_ACP, 0, args, -1, lpCmdLine, sizeof(lpCmdLine) );
-#endif
     char **argv, psz_cmdline[wcslen(lpCmdLine) * 4];
     int argc, ret;
 
@@ -214,3 +205,14 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
     libvlc_exception_clear (&ex);
     return ret;
 }
+
+#ifndef IF_MINGW_SUPPORTED_UNICODE
+int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
+                    LPSTR args, int nCmdShow)
+{
+    /* This makes little sense, but at least it links properly */
+    wchar_t lpCmdLine[strlen(args) * 3];
+    MultiByteToWideChar( CP_ACP, 0, args, -1, lpCmdLine, sizeof(lpCmdLine) );
+    return wWinMain (hInstance, hPrevInstance, lpCmdLine, nCmdShow);
+}
+#endif