Attempt at getting mingw32 working again... still doesn't work
I wonder when the last time it did work git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
052cbfee35
commit
0c589ad076
@ -54,7 +54,7 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT;
|
||||
// this defines a CASTWNDPROC macro which casts a pointer to the type of a
|
||||
// window proc
|
||||
// ---------------------------------------------------------------------------
|
||||
#ifdef __GNUWIN32__
|
||||
#if defined(__GNUWIN32__) && !defined(__MINGW32__)
|
||||
# define CASTWNDPROC (long unsigned)
|
||||
#else
|
||||
# ifdef __BORLANDC__
|
||||
|
@ -23,16 +23,6 @@
|
||||
#include "wx/event.h"
|
||||
#include "wx/textctrl.h"
|
||||
|
||||
#ifdef __GNUWIN32__
|
||||
# ifdef GetFirstChild
|
||||
# undef GetFirstChild
|
||||
# endif
|
||||
|
||||
# ifdef GetNextSibling
|
||||
# undef GetNextSibling
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// the type for "untyped" data
|
||||
typedef long wxDataType;
|
||||
|
||||
|
@ -117,6 +117,10 @@
|
||||
|
||||
#ifdef StartDoc
|
||||
#undef StartDoc
|
||||
#ifdef __MINGW32__
|
||||
#define DOCINFOW DOCINFO
|
||||
#define DOCINFOA DOCINFO
|
||||
#endif
|
||||
#ifdef _UNICODE
|
||||
inline int StartDoc(HDC h, CONST DOCINFOW* info)
|
||||
{
|
||||
@ -159,11 +163,11 @@
|
||||
|
||||
// GetNextSibling
|
||||
#ifdef GetNextSibling
|
||||
#undef GetNextSibling
|
||||
inline HWND GetNextSibling(HWND h)
|
||||
{
|
||||
return GetWindow(h, GW_HWNDNEXT);
|
||||
}
|
||||
#undef GetNextSibling
|
||||
inline HWND GetNextSibling(HWND h)
|
||||
{
|
||||
return GetWindow(h, GW_HWNDNEXT);
|
||||
}
|
||||
#endif
|
||||
|
||||
// GetWindowProc
|
||||
|
@ -21,7 +21,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dc.h"
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
// wxWindows
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
#include <wx/event.h>
|
||||
#include <wx/app.h>
|
||||
#include <wx/string.h>
|
||||
|
@ -45,6 +45,7 @@
|
||||
#include "wx/checkbox.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/slider.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/statbox.h"
|
||||
#include "wx/statbmp.h"
|
||||
#if wxUSE_GAUGE
|
||||
|
@ -54,7 +54,7 @@ RESFLAGS=$(RCINCSWITCH) $(WXDIR)/include $(RCDEFSWITCH) __WIN32__ $(RCDEFSWITCH)
|
||||
########################## Compiler flags #############################
|
||||
|
||||
# Miscellaneous compiler options
|
||||
OPTIONS= -D__EGCS__ # -D__MINGW32__
|
||||
OPTIONS= -D__EGCS__ -DSTRICT # -D__MINGW32__
|
||||
|
||||
# Debugging information
|
||||
# AIX: comment out.
|
||||
|
@ -30,6 +30,7 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/window.h"
|
||||
#include "wx/log.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/caret.h"
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "wx/frame.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_METAFILE
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/icon.h"
|
||||
#endif
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
@ -28,18 +28,20 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/frame.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/frame.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcprint.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
@ -28,11 +28,14 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/window.h"
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#include "wx/dcclient.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// macros
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -23,11 +23,12 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#endif
|
||||
|
||||
#include "wx/dcprint.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/log.h"
|
||||
#include "math.h"
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
#include "wx/dcprint.h"
|
||||
#include "math.h"
|
||||
|
||||
#if wxUSE_COMMON_DIALOGS
|
||||
#include <commdlg.h>
|
||||
|
@ -21,11 +21,13 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/string.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcscreen.h"
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#if !USE_SHARED_LIBRARY
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
|
||||
|
@ -26,6 +26,8 @@
|
||||
#include "wx/frame.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
@ -26,7 +26,9 @@
|
||||
#include <stdio.h>
|
||||
#include "wx/setup.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/string.h"
|
||||
#endif
|
||||
|
||||
#include "wx/log.h"
|
||||
|
@ -20,7 +20,9 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
#include "wx/string.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#ifndef __GNUWIN32__
|
||||
#include <mmsystem.h>
|
||||
|
@ -20,18 +20,24 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/listbox.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/brush.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/dc.h"
|
||||
#endif
|
||||
|
||||
#include <windowsx.h>
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/listbox.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/brush.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/dc.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
#include "wx/ownerdrw.h"
|
||||
#endif
|
||||
|
||||
#ifndef __TWIN32__
|
||||
#ifdef __GNUWIN32__
|
||||
@ -39,12 +45,6 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
#include "wx/ownerdrw.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
#if !USE_SHARED_LIBRARY
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
|
||||
|
@ -37,6 +37,8 @@
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/statusbr.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/mdi.h"
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "wx/frame.h"
|
||||
#include "wx/menu.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
|
@ -29,11 +29,14 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/menu.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/accel.h"
|
||||
#include "wx/menu.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/window.h"
|
||||
#endif
|
||||
|
||||
#include "wx/ownerdrw.h"
|
||||
|
@ -20,6 +20,9 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/setup.h"
|
||||
#include "wx/event.h"
|
||||
@ -30,7 +33,6 @@
|
||||
#if wxUSE_ITSY_BITSY
|
||||
|
||||
#include "wx/minifram.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#ifndef __TWIN32__
|
||||
#ifdef __GNUWIN32__
|
||||
@ -86,8 +88,8 @@ wxMiniFrame::~wxMiniFrame(void)
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
@ -21,6 +21,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/dcmemory.h"
|
||||
@ -31,7 +33,6 @@
|
||||
#include "wx/ownerdrw.h"
|
||||
#include "wx/menuitem.h"
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
// ============================================================================
|
||||
// implementation of wxOwnerDrawn class
|
||||
|
@ -31,10 +31,13 @@
|
||||
#include "wx/defs.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
|
||||
#include "wx/msw/printwin.h"
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "wx/msw/region.h"
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#if !USE_SHARED_LIBRARY
|
||||
|
@ -28,12 +28,15 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/icon.h"
|
||||
#include "wx/statbmp.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// macors
|
||||
|
@ -20,13 +20,15 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/dcclient.h"
|
||||
#endif
|
||||
|
||||
#include "wx/statbox.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#if !USE_SHARED_LIBRARY
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
|
||||
|
@ -20,6 +20,9 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/setup.h"
|
||||
#include "wx/list.h"
|
||||
@ -31,7 +34,6 @@
|
||||
#include "wx/log.h"
|
||||
|
||||
#include "wx/timer.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#include <time.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -27,8 +27,19 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#include "wx/settings.h"
|
||||
#endif
|
||||
|
||||
// Mingw32 is a bit mental even though this is done in winundef
|
||||
#ifdef GetFirstChild
|
||||
#undef GetFirstChild
|
||||
#endif
|
||||
#ifdef GetNextSibling
|
||||
#undef GetNextSibling
|
||||
#endif
|
||||
|
||||
#if defined(__WIN95__)
|
||||
@ -38,8 +49,6 @@
|
||||
#include "wx/imaglist.h"
|
||||
#include "wx/msw/treectrl.h"
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#ifdef __GNUWIN32__
|
||||
#include "wx/msw/gnuwin32/extra.h"
|
||||
#endif
|
||||
|
@ -645,7 +645,7 @@ char *wxGetUserHome (const wxString& user)
|
||||
if ((home = getenv("TMP")) != NULL ||
|
||||
(home = getenv("TMPDIR")) != NULL ||
|
||||
(home = getenv("TEMP")) != NULL)
|
||||
return *home ? home : "\\";
|
||||
return *home ? home : (char*)"\\";
|
||||
}
|
||||
if (Stricmp(tmp, WXSTRINGCAST user1) == 0)
|
||||
user1 = "";
|
||||
|
@ -29,6 +29,9 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include <windows.h>
|
||||
#include "wx/msw/winundef.h"
|
||||
#include "wx/accel.h"
|
||||
#include "wx/setup.h"
|
||||
#include "wx/menu.h"
|
||||
#include "wx/dc.h"
|
||||
@ -58,6 +61,8 @@
|
||||
#include "wx/menuitem.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
#include "wx/tooltip.h"
|
||||
#endif
|
||||
@ -69,7 +74,6 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#include "wx/textctrl.h"
|
||||
|
||||
@ -94,8 +98,6 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "wx/msw/winundef.h"
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// macros
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user