]> git.saurik.com Git - wxWidgets.git/commitdiff
MSVC 5 compilation fixes.
authorMattia Barbon <mbarbon@cpan.org>
Fri, 18 Jul 2003 19:47:19 +0000 (19:47 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Fri, 18 Jul 2003 19:47:19 +0000 (19:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/afterstd.h
include/wx/beforestd.h
include/wx/cmdproc.h
include/wx/msw/missing.h
src/msw/app.cpp
src/msw/tbar95.cpp

index a840f06f813b1a4e8e29beadf69e16cf5d2ad2c6..c74886ae8225d6885ff12e34a0bb90805131aad6 100644 (file)
     #include "wx/msw/winundef.h"
 #endif
 #ifdef _MSC_VER
-#   pragma warning(pop)
+    // MSVC 5 does not have this
+    #if _MSC_VER > 1100
+        #pragma warning(pop)
+    #else
+        // 'expression' : signed/unsigned mismatch
+        #pragma warning(default:4018)
+
+        // 'conversion' : conversion from 'type1' to 'type2',
+        // possible loss of data
+        #pragma warning(default:4244)
+
+        // C++ language change: to explicitly specialize class template
+        // 'identifier' use the following syntax
+        #pragma warning(default:4663)
+    #endif
 #endif
 
index abf6b791e2e5b37048fd3fb2655106ab4c6a4021..89e8f7f6e1aa866cf3fb4951baf042603f31a4d6 100644 (file)
     // 'id': identifier was truncated to 'num' characters in the debug info
     #pragma warning(disable:4786)
 
-    #pragma warning(push, 1)
+    // MSVC 5 does not have this
+    #if _MSC_VER > 1100
+        #pragma warning(push, 1)
+    #else
+        // 'expression' : signed/unsigned mismatch
+        #pragma warning(disable:4018)
+
+        // 'conversion' : conversion from 'type1' to 'type2',
+        // possible loss of data
+        #pragma warning(disable:4244)
+
+        // C++ language change: to explicitly specialize class template
+        // 'identifier' use the following syntax
+        #pragma warning(disable:4663)
+    #endif
 #endif
index 970922d40ba4208fcacc9e75d7219111db8460d8..9baf2338c2a31c937c719e1b631fe17a94c812c1 100644 (file)
@@ -16,6 +16,7 @@
     #pragma interface "cmdproc.h"
 #endif
 
+#include "wx/defs.h"
 #include "wx/object.h"
 #include "wx/list.h"
 
index 83129ec448869b6d35268c5a3f7c18058bfc9c19..5778f1adf41bd3fb8f1853bbf595df892b592981 100644 (file)
@@ -365,6 +365,34 @@ typedef struct _paraformat2 {
 
 #endif // wxUSE_RICHEDIT
 
+// ----------------------------------------------------------------------------
+// ToolBar
+// ----------------------------------------------------------------------------
+
+#if wxUSE_TOOLBAR
+
+#if !defined(TBIF_SIZE)
+
+#define TBIF_SIZE 64
+#define TB_SETBUTTONINFO (WM_USER+66)
+
+typedef struct {
+    UINT cbSize;
+    DWORD dwMask;
+    int idCommand;
+    int iImage;
+    BYTE fsState;
+    BYTE fsStyle;
+    WORD cx;
+    DWORD lParam;
+    LPTSTR pszText;
+    int cchText;
+} TBBUTTONINFO, *LPTBBUTTONINFO;
+
+#endif // !defined(TBIF_SIZE)
+
+#endif // wxUSE_TOOLBAR
+
 // ----------------------------------------------------------------------------
 // Misc stuff
 // ----------------------------------------------------------------------------
index 03551b3c175bc6e520efca08a453407a55ff5652..26e39644e46f676a18351b09d4f070126d8d3b8c 100644 (file)
 
 #if _WIN32_IE >= 0x0300 && \
     (!defined(__MINGW32__) || wxCHECK_W32API_VERSION( 2, 0 )) && \
-    !defined(__CYGWIN__) && !defined(__WXWINCE__)
+    !defined(__CYGWIN__) && !defined(__WXWINCE__) && \
+    (!defined(_MSC_VER) || (_MSC_VER > 1100))
     #include <shlwapi.h>
 #endif
 
index 4fa970dc549324140347e113e755beedd45fd014..a1d6e9d48457589a7e6a01158658494bb773c814 100644 (file)
@@ -55,6 +55,8 @@
     #include "wx/msw/gnuwin32/extra.h"
 #endif
 
+#include "wx/msw/missing.h"
+
 #include "wx/app.h"         // for GetComCtl32Version
 
 #if defined(__MWERKS__) && defined(__WXMSW__)