]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dummy.cpp
Removed USING_CONFIGURE define. As VZ pointed out, checking HAVE_CONFIG_H
[wxWidgets.git] / src / msw / dummy.cpp
index 50f5c99001a66b0472e9d73972c35413c24fafb1..c21e7df120e3214f608cf6f723e02d867aa5e2ff 100644 (file)
@@ -1,14 +1,12 @@
 /*
- * File:       dummy.cc
- * Purpose:    See below
- * Author:     Julian Smart
- * Created:    1993
- * Updated:    
+ * File:  dummy.cc
+ * Purpose:  See below
+ * Author:  Julian Smart
+ * Created:  1993
+ * Updated:
  * Copyright:   (c) 1993, AIAI, University of Edinburgh
  */
 
-/* static const char sccsid[] = "@(#)dummy.cc  1.2 5/9/94"; */
-
 /* A dummy file to include wx.h. If precompiling wx.h, I
  * always start by compiling this and producing the PCH file.
  * Then subsequent source files use the PCH file.
  * This will produce a big PCH file.
  */
 
-
-
-#if defined(__BORLANDC__)
-#if !(defined(__WIN32__) || defined(__NT__) || defined(__WIN32__))
-#pragma hdrfile "c:\wx\src\msw\wx.pch"
-#endif
-
-#pragma hdrstart
-#endif
-
 #include "wx/wxprec.h"
-#include "windows.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
-// Foils optimizations in Visual C++ (see also wx_main.cc)
-char wxDummyChar=0;
+#include <windows.h>
 
-#if defined(WXUSINGDLL)
+#include "wx/msw/msvcrt.h"
 
-// NT defines APIENTRY, 3.x not
-#if !defined(APIENTRY)
-#define APIENTRY FAR PASCAL
-#endif
-#ifdef __WATCOMC__
-int PASCAL
-#else
-int APIENTRY
+// Foils optimizations in Visual C++ (see also app.cpp). Without it,
+// dummy.obj isn't linked and we get a linker error.
+#if defined(__VISUALC__)
+    char wxDummyChar = 0;
 #endif
 
- WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR m_lpCmdLine,
-                    int nCmdShow )
-{
-  return wxEntry((WXHINSTANCE) hInstance, (WXHINSTANCE) hPrevInstance, m_lpCmdLine, nCmdShow);
-}
-#endif
-
-