]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/private.h
Because someone was inconsistent about using LPSTR and char*, I missed
[wxWidgets.git] / include / wx / msw / private.h
index 889b6d7f6751cb8b29d0df75b05e37339726bab9..02b95773135792ab03e3b0353483a6a33b4bdd1c 100644 (file)
@@ -20,6 +20,7 @@
 #include "wx/msw/winundef.h"
 
 class WXDLLEXPORT wxFont;
+class WXDLLEXPORT wxWindow;
 
 // ---------------------------------------------------------------------------
 // private constants
@@ -76,8 +77,12 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT;
        typedef int (pascal * WndProcCast) ();
 #      define CASTWNDPROC (WndProcCast)
 #    else
-       typedef int (PASCAL * WndProcCast) ();
-#      define CASTWNDPROC (WndProcCast)
+#      if defined(__VISUALC__) && defined(STRICT)
+#        define CASTWNDPROC (WNDPROC)
+#      else
+         typedef int (PASCAL * WndProcCast) ();
+#        define CASTWNDPROC (WndProcCast)
+#      endif
 #    endif
 #    else
 #      define CASTWNDPROC
@@ -104,8 +109,10 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT;
 #endif
 
 #if !defined(__WIN32__)  // 3.x uses FARPROC for dialogs
+#ifndef STRICT
     #define DLGPROC FARPROC
 #endif
+#endif
 
 #if wxUSE_PENWIN
     WXDLLEXPORT void wxRegisterPenWin();