]> git.saurik.com Git - wxWidgets.git/commitdiff
BCC fixes
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 1 Apr 2004 07:17:50 +0000 (07:17 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 1 Apr 2004 07:17:50 +0000 (07:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cppunit.h
tests/filesys/filesys.cpp
tests/mbconv/main.cpp

index 5eafa69e0fe86104d509386fe1ab03312e1bfe37..daca99cb6a1d3a01274212424dbc34fab61460be 100644 (file)
     #pragma warning(disable:4786)
 #endif // __VISUALC__
 
+#ifdef __BORLANDC__
+    #pragma warn -8022
+#endif
+
 #include "wx/beforestd.h"
 #include <cppunit/extensions/TestFactoryRegistry.h>
 #include <cppunit/ui/text/TestRunner.h>
 #include <cppunit/extensions/HelperMacros.h>
 #include "wx/afterstd.h"
 
+#ifdef __BORLANDC__
+    #pragma warn .8022
+#endif
+
 #ifdef _MSC_VER
   #pragma warning(default:4702)
 #endif // _MSC_VER
index 64b12d8b0fd26ac9e25edbf284c5b306bdc448b5..05c9458b702806806164db9fb525ad032380ef1d 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#include "wx/wx.h"
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+    #pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+    #include "wx/wx.h"
+#endif // WX_PRECOMP
+
 #include "wx/filesys.h"
 
 #include "wx/cppunit.h"
@@ -57,7 +66,7 @@ private:
 
     void UrlParsing();
 
-    DECLARE_NO_COPY_CLASS(FileSystemTestCase);
+    DECLARE_NO_COPY_CLASS(FileSystemTestCase)
 };
 
 // register in the unnamed registry so that these tests are run by default
@@ -70,8 +79,8 @@ void FileSystemTestCase::UrlParsing()
 {
     static const struct Data
     {
-        const wchar_t *url;
-        const wchar_t *protocol, *left, *right, *anchor;
+        const wxChar *url;
+        const wxChar *protocol, *left, *right, *anchor;
     } data[] =
     {
         // simple case:
index d17d97756aa5d6a3cb1abbc04f0da25ee2ebf07a..5eb0ecf30fd83b9dace89bebbb34a44b425619e8 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#include "wx/wx.h"
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+    #pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+    #include "wx/wx.h"
+#endif // WX_PRECOMP
+
 #include "wx/strconv.h"
 #include "wx/string.h"
 
@@ -33,7 +42,7 @@ private:
 
     void WC2CP1250();
 
-    DECLARE_NO_COPY_CLASS(MBConvTestCase);
+    DECLARE_NO_COPY_CLASS(MBConvTestCase)
 };
 
 // register in the unnamed registry so that these tests are run by default