remove unneccessary header dependencies on wx/thread.h

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2007-12-03 02:55:14 +00:00
parent 363e2dc013
commit 204abcd474
15 changed files with 29 additions and 20 deletions

View File

@@ -9,8 +9,8 @@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_EVENT_H__
#define _WX_EVENT_H__
#ifndef _WX_EVENT_H_
#define _WX_EVENT_H_
#include "wx/defs.h"
#include "wx/cpp.h"
@@ -22,8 +22,6 @@
#include "wx/cursor.h"
#endif
#include "wx/thread.h"
#include "wx/dynarray.h"
// ----------------------------------------------------------------------------
@@ -31,7 +29,9 @@
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_FWD_BASE wxList;
#if wxUSE_THREADS
class WXDLLIMPEXP_FWD_BASE wxCriticalSection;
#endif
#if wxUSE_GUI
class WXDLLIMPEXP_FWD_CORE wxDC;
class WXDLLIMPEXP_FWD_CORE wxMenu;
@@ -3112,4 +3112,4 @@ WXDLLIMPEXP_CORE wxWindow* wxFindFocusDescendant(wxWindow* ancestor);
#endif // wxUSE_GUI
#endif // _WX_EVENT_H__
#endif // _WX_EVENT_H_

View File

@@ -14,7 +14,9 @@
#include "wx/defs.h"
#include "wx/thread.h"
#if wxUSE_THREADS
class WXDLLIMPEXP_FWD_BASE wxCriticalSection;
#endif
// ----------------------------------------------------------------------------
// common constants for use in wxUSE_LOG/!wxUSE_LOG
@@ -316,7 +318,9 @@ private:
// with the number of times it was repeated
static bool ms_bRepetCounting;
wxCRIT_SECT_DECLARE(ms_prevCS); // protects the ms_prev values below
#if wxUSE_THREADS
static wxCriticalSection ms_prevCS; // protects the ms_prev values below
#endif
static wxString ms_prevString; // previous message that was logged
static unsigned ms_prevCounter; // how many times it was repeated
static time_t ms_prevTimeStamp;// timestamp of the previous message

View File

@@ -9,11 +9,10 @@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef __JOYSTICKH__
#define __JOYSTICKH__
#ifndef _WX_UNIX_JOYSTICK_H_
#define _WX_UNIX_JOYSTICK_H_
#include "wx/event.h"
#include "wx/thread.h"
class WXDLLIMPEXP_FWD_CORE wxJoystickThread;
@@ -93,5 +92,4 @@ protected:
wxJoystickThread* m_thread;
};
#endif
// __JOYSTICKH__
#endif // _WX_UNIX_JOYSTICK_H_