BCC fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-04-01 07:17:50 +00:00
parent 6ec2f25444
commit 20f46e8dc8
3 changed files with 32 additions and 6 deletions

View File

@@ -23,6 +23,10 @@
#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>
@@ -30,6 +34,10 @@
#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

View File

@@ -11,7 +11,16 @@
// 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:

View File

@@ -11,7 +11,16 @@
// 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