From: J. Russell Smyth Date: Mon, 9 Aug 1999 17:47:28 +0000 (+0000) Subject: Changes to allow OLE to compile under mingw32/gcc-2.95 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7dee726c7e569dbf73956d2f2fa63317aa83d85f Changes to allow OLE to compile under mingw32/gcc-2.95 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/ole/dataobj.h b/include/wx/msw/ole/dataobj.h index 6490e67f82..34cd92557a 100644 --- a/include/wx/msw/ole/dataobj.h +++ b/include/wx/msw/ole/dataobj.h @@ -12,6 +12,7 @@ #ifndef _WX_OLEDATAOBJ_H #define _WX_OLEDATAOBJ_H +#include "wx/bitmap.h" // ---------------------------------------------------------------------------- // wxDataFormat identifies the single format of data // ---------------------------------------------------------------------------- @@ -148,7 +149,7 @@ class WXDLLEXPORT wxBitmapDataObject : public wxDataObject { public: // ctors - wxBitmapDataObject() {}; + wxBitmapDataObject() {} wxBitmapDataObject(const wxBitmap& bitmap): m_bitmap(bitmap) {} void SetBitmap(const wxBitmap& bitmap) { m_bitmap = bitmap; } wxBitmap GetBitmap() const { return m_bitmap; } diff --git a/include/wx/msw/ole/dropsrc.h b/include/wx/msw/ole/dropsrc.h index bafcddee67..6835e0a516 100644 --- a/include/wx/msw/ole/dropsrc.h +++ b/include/wx/msw/ole/dropsrc.h @@ -15,7 +15,7 @@ #ifdef __GNUG__ #pragma interface #endif - +#include "wx/window.h" #if !wxUSE_DRAG_AND_DROP #error "You should #define wxUSE_DRAG_AND_DROP to 1 to compile this file!" #endif //WX_DRAG_DROP diff --git a/include/wx/msw/ole/oleutils.h b/include/wx/msw/ole/oleutils.h index 9809d398e0..d20c22c17b 100644 --- a/include/wx/msw/ole/oleutils.h +++ b/include/wx/msw/ole/oleutils.h @@ -17,7 +17,9 @@ #endif #include "wx/defs.h" - +#ifdef wxUSE_NORLANDER_HEADERS +#include +#endif // ============================================================================ // General purpose functions and macros // ============================================================================ diff --git a/include/wx/msw/ole/uuid.h b/include/wx/msw/ole/uuid.h index eec658c87f..b70672d3e3 100644 --- a/include/wx/msw/ole/uuid.h +++ b/include/wx/msw/ole/uuid.h @@ -17,7 +17,7 @@ #ifdef __GNUG__ #pragma interface "uuid.h" #endif - +#include "wx/wxchar.h" // ------------------------------------------------------------------ // UUID (Universally Unique IDentifier) definition // ------------------------------------------------------------------ diff --git a/src/msw/app.cpp b/src/msw/app.cpp index dc4e711541..d1a70a3d3c 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -69,11 +69,13 @@ #endif // OLE is used for drag-and-drop, clipboard, OLE Automation... +#ifndef wxUSE_NORLANDER_HEADERS #if defined(__GNUWIN32__) || defined(__SC__) || defined(__SALFORDC__) #undef wxUSE_OLE #define wxUSE_OLE 0 #endif // broken compilers +#endif #if wxUSE_OLE #include @@ -218,7 +220,6 @@ bool wxApp::Initialize() while (!SetMessageQueue(iMsg) && (iMsg -= 8)) ; #endif // Win16 - // we need to initialize OLE library if ( FAILED(::OleInitialize(NULL)) ) wxLogError(_("Cannot initialize OLE")); diff --git a/src/msw/ole/automtn.cpp b/src/msw/ole/automtn.cpp index 4dad2d2c78..c838b38d78 100644 --- a/src/msw/ole/automtn.cpp +++ b/src/msw/ole/automtn.cpp @@ -29,6 +29,10 @@ #include "wx/msw/private.h" +#include +#include +#include +#define _huge #include #include diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index 1699f9dce6..1b3c066a8b 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -27,18 +27,23 @@ #if defined(__BORLANDC__) #pragma hdrstop #endif - +#ifndef WX_PRECOMP +#include "wx/intl.h" +#endif #include "wx/defs.h" -#if defined(__WIN32__) && !defined(__GNUWIN32__) +#if defined(__WIN32__) && !defined(__GNUWIN32__) || defined(wxUSE_NORLANDER_HEADERS) #include "wx/log.h" #include "wx/dataobj.h" #include +#ifdef wxUSE_NORLANDER_HEADERS + #include +#endif #include -#ifndef __WIN32__ +#ifndef __WIN32__ #include #include #endif diff --git a/src/msw/ole/dropsrc.cpp b/src/msw/ole/dropsrc.cpp index 4a38d8125f..86f31d8c58 100644 --- a/src/msw/ole/dropsrc.cpp +++ b/src/msw/ole/dropsrc.cpp @@ -27,6 +27,9 @@ #if defined(__BORLANDC__) #pragma hdrstop #endif +#ifndef WX_PRECOMP +#include "wx/window.h" +#endif #include "wx/setup.h" @@ -37,6 +40,9 @@ #include "wx/msw/ole/dropsrc.h" #include +#ifdef wxUSE_NORLANDER_HEADERS +#include +#endif #ifndef __WIN32__ #include