replace wrong WXDLLEXPORT declarations with correct WXDLLIMPEXP_BASE/ADV/GL (patch from Tim Stahlhut)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-12-12 01:35:53 +00:00
parent 51cd351973
commit 163b3ad72c
27 changed files with 43 additions and 43 deletions

View File

@@ -84,7 +84,7 @@ enum wxAnimationType
// wxAnimationDecoder class // wxAnimationDecoder class
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
class WXDLLEXPORT wxAnimationDecoder : public wxObjectRefData class WXDLLIMPEXP_ADV wxAnimationDecoder : public wxObjectRefData
{ {
public: public:
wxAnimationDecoder() wxAnimationDecoder()

View File

@@ -16,7 +16,7 @@
#include "wx/object.h" #include "wx/object.h"
#include "wx/cocoa/ObjcRef.h" #include "wx/cocoa/ObjcRef.h"
class WXDLLEXPORT wxSound : public wxSoundBase class WXDLLIMPEXP_ADV wxSound : public wxSoundBase
{ {
public: public:
wxSound() wxSound()

View File

@@ -19,7 +19,7 @@ class WXDLLIMPEXP_FWD_CORE wxMenu;
class wxTaskBarIconCocoaImpl; class wxTaskBarIconCocoaImpl;
class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase class WXDLLIMPEXP_ADV wxTaskBarIcon : public wxTaskBarIconBase
{ {
friend class wxTaskBarIconCocoaImpl; friend class wxTaskBarIconCocoaImpl;
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon) DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)

View File

@@ -28,7 +28,7 @@ class WXDLLIMPEXP_FWD_BASE wxFileOutputStream;
class WXDLLIMPEXP_FWD_BASE wxSVGFileDC; class WXDLLIMPEXP_FWD_CORE wxSVGFileDC;
class WXDLLIMPEXP_CORE wxSVGFileDCImpl : public wxDCImpl class WXDLLIMPEXP_CORE wxSVGFileDCImpl : public wxDCImpl
{ {

View File

@@ -154,7 +154,7 @@ private :
}; };
#define WX_DEFINE_FLAGS( flags ) \ #define WX_DEFINE_FLAGS( flags ) \
class WXDLLEXPORT flags \ class WXDLLIMPEXP_BASE flags \
{\ {\
public : \ public : \
flags(long data=0) :m_data(data) {} \ flags(long data=0) :m_data(data) {} \

View File

@@ -20,7 +20,7 @@
class wxTimerDesc; class wxTimerDesc;
class WXDLLEXPORT wxGenericTimerImpl : public wxTimerImpl class WXDLLIMPEXP_BASE wxGenericTimerImpl : public wxTimerImpl
{ {
public: public:
wxGenericTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); } wxGenericTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }

View File

@@ -18,7 +18,7 @@
// wxGLCanvas // wxGLCanvas
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class WXDLLEXPORT wxGLCanvas : public wxGLCanvasX11 class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
{ {
public: public:
wxGLCanvas(wxWindow *parent, wxGLCanvas(wxWindow *parent,

View File

@@ -16,7 +16,7 @@
// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxConsoleAppTraits : public wxConsoleAppTraitsBase class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
{ {
public: public:
// no timer support in wxBase yet // no timer support in wxBase yet

View File

@@ -25,7 +25,7 @@
#if ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2 ) #if ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2 )
class WXDLLEXPORT wxDrawerWindow : public wxTopLevelWindow class WXDLLIMPEXP_ADV wxDrawerWindow : public wxTopLevelWindow
{ {
DECLARE_DYNAMIC_CLASS(wxDrawerWindow) DECLARE_DYNAMIC_CLASS(wxDrawerWindow)

View File

@@ -20,7 +20,7 @@
# include <agl.h> # include <agl.h>
#endif #endif
class WXDLLEXPORT wxGLContext : public wxGLContextBase class WXDLLIMPEXP_GL wxGLContext : public wxGLContextBase
{ {
public: public:
wxGLContext(wxGLCanvas *win, const wxGLContext *other = NULL); wxGLContext(wxGLCanvas *win, const wxGLContext *other = NULL);
@@ -37,7 +37,7 @@ private:
DECLARE_NO_COPY_CLASS(wxGLContext) DECLARE_NO_COPY_CLASS(wxGLContext)
}; };
class WXDLLEXPORT wxGLCanvas : public wxGLCanvasBase class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasBase
{ {
public: public:
wxGLCanvas(wxWindow *parent, wxGLCanvas(wxWindow *parent,

View File

@@ -14,7 +14,7 @@
#include "wx/event.h" #include "wx/event.h"
class WXDLLEXPORT wxJoystick: public wxObject class WXDLLIMPEXP_ADV wxJoystick: public wxObject
{ {
DECLARE_DYNAMIC_CLASS(wxJoystick) DECLARE_DYNAMIC_CLASS(wxJoystick)
public: public:

View File

@@ -17,7 +17,7 @@
#include "wx/object.h" #include "wx/object.h"
class WXDLLEXPORT wxSound : public wxSoundBase class WXDLLIMPEXP_ADV wxSound : public wxSoundBase
{ {
public: public:
wxSound(); wxSound();

View File

@@ -15,7 +15,7 @@
class WXDLLIMPEXP_FWD_CORE wxIcon; class WXDLLIMPEXP_FWD_CORE wxIcon;
class WXDLLIMPEXP_FWD_CORE wxMenu; class WXDLLIMPEXP_FWD_CORE wxMenu;
class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase class WXDLLIMPEXP_ADV wxTaskBarIcon : public wxTaskBarIconBase
{ {
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon) DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
public: public:

View File

@@ -16,7 +16,7 @@
class WXDLLIMPEXP_FWD_CORE wxJoystickThread; class WXDLLIMPEXP_FWD_CORE wxJoystickThread;
class WXDLLEXPORT wxJoystick: public wxObject class WXDLLIMPEXP_ADV wxJoystick: public wxObject
{ {
DECLARE_DYNAMIC_CLASS(wxJoystick) DECLARE_DYNAMIC_CLASS(wxJoystick)
public: public:

View File

@@ -132,13 +132,13 @@
extern "C" { extern "C" {
#endif #endif
/* functions from common/extended.c */ /* functions from common/extended.c */
WXDLLEXPORT wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes); WXDLLIMPEXP_BASE wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes);
WXDLLEXPORT void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes); WXDLLIMPEXP_BASE void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes);
/* use wxConvertFromIeeeExtended() and wxConvertToIeeeExtended() instead */ /* use wxConvertFromIeeeExtended() and wxConvertToIeeeExtended() instead */
#if WXWIN_COMPATIBILITY_2_8 #if WXWIN_COMPATIBILITY_2_8
wxDEPRECATED( WXDLLEXPORT wxFloat64 ConvertFromIeeeExtended(const wxInt8 *bytes) ); wxDEPRECATED( WXDLLIMPEXP_BASE wxFloat64 ConvertFromIeeeExtended(const wxInt8 *bytes) );
wxDEPRECATED( WXDLLEXPORT void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) ); wxDEPRECATED( WXDLLIMPEXP_BASE void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) );
#endif // WXWIN_COMPATIBILITY_2_8 #endif // WXWIN_COMPATIBILITY_2_8
#ifdef __cplusplus #ifdef __cplusplus

View File

@@ -14,7 +14,7 @@
#include "wx/event.h" #include "wx/event.h"
class WXDLLEXPORT wxJoystick: public wxObject class WXDLLIMPEXP_ADV wxJoystick: public wxObject
{ {
DECLARE_DYNAMIC_CLASS(wxJoystick) DECLARE_DYNAMIC_CLASS(wxJoystick)
public: public:

View File

@@ -12,7 +12,7 @@
#ifndef _WX_TIMER_H_ #ifndef _WX_TIMER_H_
#define _WX_TIMER_H_ #define _WX_TIMER_H_
class WXDLLEXPORT wxTimer : public wxTimerBase class WXDLLIMPEXP_BASE wxTimer : public wxTimerBase
{ {
friend void wxProcessTimer(wxTimer& timer); friend void wxProcessTimer(wxTimer& timer);

View File

@@ -116,7 +116,7 @@ protected:
// wxTimerRunner: starts the timer in its ctor, stops in the dtor // wxTimerRunner: starts the timer in its ctor, stops in the dtor
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxTimerRunner class WXDLLIMPEXP_BASE wxTimerRunner
{ {
public: public:
wxTimerRunner(wxTimer& timer) : m_timer(timer) { } wxTimerRunner(wxTimer& timer) : m_timer(timer) { }

View File

@@ -19,7 +19,7 @@ class wxPipe;
// wxAppTraits: the Unix version adds extra hooks needed by Unix code // wxAppTraits: the Unix version adds extra hooks needed by Unix code
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxAppTraits : public wxAppTraitsBase class WXDLLIMPEXP_BASE wxAppTraits : public wxAppTraitsBase
{ {
public: public:
// wxExecute() support methods // wxExecute() support methods

View File

@@ -16,7 +16,7 @@
// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxConsoleAppTraits : public wxConsoleAppTraitsBase class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
{ {
public: public:
#if wxUSE_CONSOLE_EVENTLOOP #if wxUSE_CONSOLE_EVENTLOOP

View File

@@ -15,7 +15,7 @@
#include "wx/unix/glx11.h" #include "wx/unix/glx11.h"
class WXDLLEXPORT wxGLCanvas : public wxGLCanvasX11 class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
{ {
public: public:
wxGLCanvas(wxWindow *parent, wxGLCanvas(wxWindow *parent,

View File

@@ -14,7 +14,7 @@
#include "wx/event.h" #include "wx/event.h"
class WXDLLEXPORT wxJoystick: public wxObject class WXDLLIMPEXP_ADV wxJoystick: public wxObject
{ {
DECLARE_DYNAMIC_CLASS(wxJoystick) DECLARE_DYNAMIC_CLASS(wxJoystick)
public: public:

View File

@@ -15,7 +15,7 @@
#if wxUSE_XRC && wxUSE_COLLPANE #if wxUSE_XRC && wxUSE_COLLPANE
class WXDLLIMPEXP_FWD_ADV wxCollapsiblePane; class WXDLLIMPEXP_FWD_CORE wxCollapsiblePane;
class WXDLLIMPEXP_XRC wxCollapsiblePaneXmlHandler : public wxXmlResourceHandler class WXDLLIMPEXP_XRC wxCollapsiblePaneXmlHandler : public wxXmlResourceHandler
{ {

View File

@@ -105,7 +105,7 @@
* and a 64-bit mantissa, with no hidden bit. * and a 64-bit mantissa, with no hidden bit.
****************************************************************/ ****************************************************************/
WXDLLEXPORT wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes) WXDLLIMPEXP_BASE wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes)
{ {
wxFloat64 f; wxFloat64 f;
wxInt32 expon; wxInt32 expon;
@@ -145,7 +145,7 @@ WXDLLEXPORT wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes)
/****************************************************************/ /****************************************************************/
WXDLLEXPORT void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) WXDLLIMPEXP_BASE void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes)
{ {
wxInt32 sign; wxInt32 sign;
wxInt32 expon; wxInt32 expon;
@@ -192,12 +192,12 @@ WXDLLEXPORT void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes)
} }
#if WXWIN_COMPATIBILITY_2_8 #if WXWIN_COMPATIBILITY_2_8
WXDLLEXPORT wxFloat64 ConvertFromIeeeExtended(const wxInt8 *bytes) WXDLLIMPEXP_BASE wxFloat64 ConvertFromIeeeExtended(const wxInt8 *bytes)
{ {
return wxConvertFromIeeeExtended(bytes); return wxConvertFromIeeeExtended(bytes);
} }
WXDLLEXPORT void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes) WXDLLIMPEXP_BASE void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes)
{ {
wxConvertToIeeeExtended(num, bytes); wxConvertToIeeeExtended(num, bytes);
} }

View File

@@ -1703,7 +1703,7 @@ bool wxFindFileInPath(wxString *pStr, const wxString& szPath, const wxString& sz
return false; return false;
} }
void WXDLLEXPORT wxSplitPath(const wxString& fileName, void WXDLLIMPEXP_BASE wxSplitPath(const wxString& fileName,
wxString *pstrPath, wxString *pstrPath,
wxString *pstrName, wxString *pstrName,
wxString *pstrExt) wxString *pstrExt)
@@ -1713,7 +1713,7 @@ void WXDLLEXPORT wxSplitPath(const wxString& fileName,
#if wxUSE_DATETIME #if wxUSE_DATETIME
time_t WXDLLEXPORT wxFileModificationTime(const wxString& filename) time_t WXDLLIMPEXP_BASE wxFileModificationTime(const wxString& filename)
{ {
wxDateTime mtime; wxDateTime mtime;
if ( !wxFileName(filename).GetTimes(NULL, &mtime, NULL) ) if ( !wxFileName(filename).GetTimes(NULL, &mtime, NULL) )
@@ -1729,7 +1729,7 @@ time_t WXDLLEXPORT wxFileModificationTime(const wxString& filename)
// Returns 0 if none or if there's a problem. // Returns 0 if none or if there's a problem.
// filterStr is in the form: "All files (*.*)|*.*|JPEG Files (*.jpeg)|*.jpeg" // filterStr is in the form: "All files (*.*)|*.*|JPEG Files (*.jpeg)|*.jpeg"
int WXDLLEXPORT wxParseCommonDialogsFilter(const wxString& filterStr, int WXDLLIMPEXP_BASE wxParseCommonDialogsFilter(const wxString& filterStr,
wxArrayString& descriptions, wxArrayString& descriptions,
wxArrayString& filters) wxArrayString& filters)
{ {

View File

@@ -385,13 +385,13 @@ static inline wxString wxLogSysErrorHelper(long err)
return wxString::Format(_(" (error %ld: %s)"), err, wxSysErrorMsg(err)); return wxString::Format(_(" (error %ld: %s)"), err, wxSysErrorMsg(err));
} }
void WXDLLEXPORT wxVLogSysError(const wxString& format, va_list argptr) void WXDLLIMPEXP_BASE wxVLogSysError(const wxString& format, va_list argptr)
{ {
wxVLogSysError(wxSysErrorCode(), format, argptr); wxVLogSysError(wxSysErrorCode(), format, argptr);
} }
#if !wxUSE_UTF8_LOCALE_ONLY #if !wxUSE_UTF8_LOCALE_ONLY
void WXDLLEXPORT wxDoLogSysErrorWchar(const wxChar *format, ...) void WXDLLIMPEXP_BASE wxDoLogSysErrorWchar(const wxChar *format, ...)
{ {
va_list argptr; va_list argptr;
va_start(argptr, format); va_start(argptr, format);
@@ -401,7 +401,7 @@ void WXDLLEXPORT wxDoLogSysErrorWchar(const wxChar *format, ...)
#endif // !wxUSE_UTF8_LOCALE_ONLY #endif // !wxUSE_UTF8_LOCALE_ONLY
#if wxUSE_UNICODE_UTF8 #if wxUSE_UNICODE_UTF8
void WXDLLEXPORT wxDoLogSysErrorUtf8(const char *format, ...) void WXDLLIMPEXP_BASE wxDoLogSysErrorUtf8(const char *format, ...)
{ {
va_list argptr; va_list argptr;
va_start(argptr, format); va_start(argptr, format);
@@ -410,7 +410,7 @@ void WXDLLEXPORT wxDoLogSysErrorUtf8(const char *format, ...)
} }
#endif // wxUSE_UNICODE_UTF8 #endif // wxUSE_UNICODE_UTF8
void WXDLLEXPORT wxVLogSysError(long err, const wxString& format, va_list argptr) void WXDLLIMPEXP_BASE wxVLogSysError(long err, const wxString& format, va_list argptr)
{ {
if ( wxLog::IsEnabled() ) { if ( wxLog::IsEnabled() ) {
wxLog::OnLog(wxLOG_Error, wxLog::OnLog(wxLOG_Error,
@@ -420,7 +420,7 @@ void WXDLLEXPORT wxVLogSysError(long err, const wxString& format, va_list argptr
} }
#if !wxUSE_UTF8_LOCALE_ONLY #if !wxUSE_UTF8_LOCALE_ONLY
void WXDLLEXPORT wxDoLogSysErrorWchar(long lErrCode, const wxChar *format, ...) void WXDLLIMPEXP_BASE wxDoLogSysErrorWchar(long lErrCode, const wxChar *format, ...)
{ {
va_list argptr; va_list argptr;
va_start(argptr, format); va_start(argptr, format);
@@ -430,7 +430,7 @@ void WXDLLEXPORT wxDoLogSysErrorWchar(long lErrCode, const wxChar *format, ...)
#endif // !wxUSE_UTF8_LOCALE_ONLY #endif // !wxUSE_UTF8_LOCALE_ONLY
#if wxUSE_UNICODE_UTF8 #if wxUSE_UNICODE_UTF8
void WXDLLEXPORT wxDoLogSysErrorUtf8(long lErrCode, const char *format, ...) void WXDLLIMPEXP_BASE wxDoLogSysErrorUtf8(long lErrCode, const char *format, ...)
{ {
va_list argptr; va_list argptr;
va_start(argptr, format); va_start(argptr, format);
@@ -441,7 +441,7 @@ void WXDLLEXPORT wxDoLogSysErrorUtf8(long lErrCode, const char *format, ...)
#ifdef __WATCOMC__ #ifdef __WATCOMC__
// workaround for http://bugzilla.openwatcom.org/show_bug.cgi?id=351 // workaround for http://bugzilla.openwatcom.org/show_bug.cgi?id=351
void WXDLLEXPORT wxDoLogSysErrorWchar(unsigned long lErrCode, const wxChar *format, ...) void WXDLLIMPEXP_BASE wxDoLogSysErrorWchar(unsigned long lErrCode, const wxChar *format, ...)
{ {
va_list argptr; va_list argptr;
va_start(argptr, format); va_start(argptr, format);
@@ -449,7 +449,7 @@ void WXDLLEXPORT wxDoLogSysErrorWchar(unsigned long lErrCode, const wxChar *form
va_end(argptr); va_end(argptr);
} }
void WXDLLEXPORT wxVLogSysError(unsigned long err, const wxString& format, va_list argptr) void WXDLLIMPEXP_BASE wxVLogSysError(unsigned long err, const wxString& format, va_list argptr)
{ wxVLogSysError((long)err, format, argptr); } { wxVLogSysError((long)err, format, argptr); }
#endif // __WATCOMC__ #endif // __WATCOMC__

View File

@@ -40,7 +40,7 @@
// wxSingleInstanceCheckerImpl: the real implementation class // wxSingleInstanceCheckerImpl: the real implementation class
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxSingleInstanceCheckerImpl class WXDLLIMPEXP_BASE wxSingleInstanceCheckerImpl
{ {
public: public:
wxSingleInstanceCheckerImpl() wxSingleInstanceCheckerImpl()