]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/main.cpp
fixed wxTempFile::Commit() broken by last check in
[wxWidgets.git] / src / msw / main.cpp
index d53937131a121479d6920f2d841a7e3f60942cb4..5617b1f15caa3ae57d0da7ee14457a0aeee6463b 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "wx/event.h"
 #include "wx/app.h"
-#include "wx/init.h"
 #include "wx/cmdline.h"
 
 #include "wx/msw/private.h"
@@ -101,6 +100,15 @@ extern "C"
 
 #if !defined(_WINDLL)
 
+#ifdef __WXWINCE__
+int WINAPI WinMain(HINSTANCE hInstance,
+                   HINSTANCE hPrevInstance,
+                   LPWSTR lpCmdLine,
+                   int nCmdShow)
+{
+    return wxEntry(hInstance, hPrevInstance, (char*) lpCmdLine, nCmdShow);
+}
+#else
 int PASCAL WinMain(HINSTANCE hInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpCmdLine,
@@ -108,6 +116,7 @@ int PASCAL WinMain(HINSTANCE hInstance,
 {
     return wxEntry(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
 }
+#endif
 
 #else // _WINDLL