]> 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 6ad79060fc1bbd96b8d80f0d294db452fe2312e7..5617b1f15caa3ae57d0da7ee14457a0aeee6463b 100644 (file)
@@ -100,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,
@@ -107,6 +116,7 @@ int PASCAL WinMain(HINSTANCE hInstance,
 {
     return wxEntry(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
 }
+#endif
 
 #else // _WINDLL