first pass of wxUniv merge - nothing works, most parts don't even compile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-06-26 20:59:19 +00:00
parent aeb313f31c
commit 1e6feb95a7
409 changed files with 42065 additions and 6675 deletions

View File

@@ -51,8 +51,6 @@ extern "C" {
#include "wx/timer.h"
#include <ctype.h>
#if !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__SALFORDC__)
#include <direct.h>
@@ -90,15 +88,11 @@ extern "C" {
#endif
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef __WATCOMC__
#if !(defined(_MSC_VER) && (_MSC_VER > 800))
#include <errno.h>
#endif
#endif
#include <stdarg.h>
//// BEGIN for console support: VC++ only
#ifdef __VISUALC__
@@ -109,13 +103,7 @@ extern "C" {
#include "wx/ioswrap.h"
#if wxUSE_IOSTREAMH
// N.B. BC++ doesn't have istream.h, ostream.h
# include <io.h>
# include <fstream.h>
#else
# include <fstream>
#endif
#include "wx/ioswrap.h"
/* Need to undef new if including crtdbg.h */
# ifdef new
@@ -862,10 +850,12 @@ int wxGetOsVersion(int *majorVsn, int *minorVsn)
#if wxUSE_GUI
#if wxUSE_TIMER
// Sleep for nSecs seconds. Attempt a Windows implementation using timers.
static bool gs_inTimer = FALSE;
class wxSleepTimer: public wxTimer
class wxSleepTimer : public wxTimer
{
public:
virtual void Notify()
@@ -881,7 +871,7 @@ void wxUsleep(unsigned long milliseconds)
{
#ifdef __WIN32__
::Sleep(milliseconds);
#else
#else // !Win32
if (gs_inTimer)
return;
@@ -895,7 +885,7 @@ void wxUsleep(unsigned long milliseconds)
}
delete wxTheSleepTimer;
wxTheSleepTimer = NULL;
#endif
#endif // Win32/!Win32
}
void wxSleep(int nSecs)
@@ -921,6 +911,8 @@ void wxFlushEvents()
// wxYield();
}
#endif // wxUSE_TIMER
#elif defined(__WIN32__) // wxUSE_GUI
void wxUsleep(unsigned long milliseconds)