]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dummy.cpp
wxProcess-related code now works
[wxWidgets.git] / src / msw / dummy.cpp
index 1a2876a2b91613e17d96eee87350e1cd3b6d16af..5bca45319e501d7c11aef99558735f5547610c4f 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * 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
  */
 
@@ -40,7 +40,7 @@
 
 // Foils optimizations in Visual C++ (see also app.cpp). Without it,
 // dummy.obj isn't linked and we get a linker error.
-#if defined(_MSC_VER)
+#if defined(__VISUALC__)
     char wxDummyChar = 0;
 #endif
 
@@ -51,7 +51,7 @@
 #if !defined(APIENTRY)
     #define APIENTRY FAR PASCAL
 #endif
+
 int
 #ifdef __WATCOMC__
     PASCAL
@@ -63,7 +63,9 @@ WinMain(HINSTANCE hInstance,
         LPSTR m_lpCmdLine,
         int nCmdShow )
 {
+#if !WXUSINGDLL
     wxCrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF);
+#endif
 
     return wxEntry((WXHINSTANCE) hInstance, (WXHINSTANCE) hPrevInstance,
                    m_lpCmdLine, nCmdShow);