Changed code to allow for removal of the #include <windows.h> from wxprec.h for windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
# include <dl.h>
|
# include <dl.h>
|
||||||
typedef shl_t wxDllType;
|
typedef shl_t wxDllType;
|
||||||
#elif defined(__WINDOWS__)
|
#elif defined(__WINDOWS__)
|
||||||
# include <windows.h>
|
//# include <windows.h>
|
||||||
typedef HMODULE wxDllType;
|
typedef HMODULE wxDllType;
|
||||||
#elif defined(__OS2__)
|
#elif defined(__OS2__)
|
||||||
# define INCL_DOS
|
# define INCL_DOS
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
// include standard Windows headers
|
// include standard Windows headers
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
#include <windows.h>
|
// #include <windows.h>
|
||||||
#include "wx/msw/winundef.h"
|
#include "wx/msw/winundef.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -37,6 +37,8 @@
|
|||||||
#include "wx/filefn.h"
|
#include "wx/filefn.h"
|
||||||
#endif //WX_PRECOMP
|
#endif //WX_PRECOMP
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "wx/datetime.h"
|
#include "wx/datetime.h"
|
||||||
#include "wx/cmdline.h"
|
#include "wx/cmdline.h"
|
||||||
|
|
||||||
|
@@ -75,6 +75,8 @@
|
|||||||
|
|
||||||
#define wxDEFINE_TIME_CONSTANTS // before including datetime.h
|
#define wxDEFINE_TIME_CONSTANTS // before including datetime.h
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "wx/datetime.h"
|
#include "wx/datetime.h"
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -22,6 +22,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
#if defined(__WINDOWS__)
|
||||||
|
#include "wx/msw/private.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
@@ -42,10 +45,11 @@
|
|||||||
# define wxDllOpen(lib) dlopen(lib.fn_str(), RTLD_NOW/*RTLD_LAZY*/)
|
# define wxDllOpen(lib) dlopen(lib.fn_str(), RTLD_NOW/*RTLD_LAZY*/)
|
||||||
# define wxDllGetSymbol(handle, name) dlsym(handle, name.mb_str())
|
# define wxDllGetSymbol(handle, name) dlsym(handle, name.mb_str())
|
||||||
# define wxDllClose dlclose
|
# define wxDllClose dlclose
|
||||||
|
aaa=1
|
||||||
#elif defined(HAVE_SHL_LOAD)
|
#elif defined(HAVE_SHL_LOAD)
|
||||||
# define wxDllOpen(lib) shl_load(lib.fn_str(), BIND_DEFERRED, 0)
|
# define wxDllOpen(lib) shl_load(lib.fn_str(), BIND_DEFERRED, 0)
|
||||||
# define wxDllClose shl_unload
|
# define wxDllClose shl_unload
|
||||||
|
bbb=1
|
||||||
static inline void *wxDllGetSymbol(shl_t handle, const wxString& name)
|
static inline void *wxDllGetSymbol(shl_t handle, const wxString& name)
|
||||||
{
|
{
|
||||||
void *sym;
|
void *sym;
|
||||||
@@ -55,8 +59,6 @@
|
|||||||
return (void *)0;
|
return (void *)0;
|
||||||
}
|
}
|
||||||
#elif defined(__WINDOWS__)
|
#elif defined(__WINDOWS__)
|
||||||
# include <windows.h>
|
|
||||||
|
|
||||||
// using LoadLibraryEx under Win32 to avoid name clash with LoadLibrary
|
// using LoadLibraryEx under Win32 to avoid name clash with LoadLibrary
|
||||||
# ifdef __WIN32__
|
# ifdef __WIN32__
|
||||||
# define wxDllOpen(lib) ::LoadLibraryEx(lib, 0, 0)
|
# define wxDllOpen(lib) ::LoadLibraryEx(lib, 0, 0)
|
||||||
|
@@ -24,6 +24,8 @@
|
|||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
@@ -15,6 +15,9 @@
|
|||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
#if defined(__WINDOWS__)
|
||||||
|
#include "wx/msw/private.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/serbase.h"
|
#include "wx/serbase.h"
|
||||||
#include "wx/datstrm.h"
|
#include "wx/datstrm.h"
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
#include "wx/msw/private.h" // needs to be before #include <commdlg.h>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
@@ -56,8 +57,6 @@
|
|||||||
#include <print.h>
|
#include <print.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/msw/private.h"
|
|
||||||
|
|
||||||
IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
|
IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
@@ -38,6 +38,8 @@
|
|||||||
#include "wx/event.h"
|
#include "wx/event.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/msw/private.h" // must be before #include "dynlib.h"
|
||||||
|
|
||||||
#if !wxUSE_DYNLIB_CLASS
|
#if !wxUSE_DYNLIB_CLASS
|
||||||
#error You need wxUSE_DYNLIB_CLASS to be 1 to compile dialup.cpp.
|
#error You need wxUSE_DYNLIB_CLASS to be 1 to compile dialup.cpp.
|
||||||
#endif
|
#endif
|
||||||
@@ -54,8 +56,6 @@
|
|||||||
|
|
||||||
#include <wininet.h>
|
#include <wininet.h>
|
||||||
|
|
||||||
#include "wx/msw/private.h"
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// constants
|
// constants
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
#include "wx/msw/private.h"
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
#include "wx/msw/private.h"
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
@@ -28,7 +29,7 @@
|
|||||||
#include "wx/intl.h"
|
#include "wx/intl.h"
|
||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
|
|
||||||
#include "wx/msw/private.h"
|
// #include "wx/msw/private.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__)
|
#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__)
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
#include "wx/msw/private.h"
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
@@ -22,7 +23,7 @@
|
|||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/window.h"
|
#include "wx/window.h"
|
||||||
#include "wx/msw/private.h"
|
// #include "wx/msw/private.h"
|
||||||
#include "wx/font.h"
|
#include "wx/font.h"
|
||||||
#include "wx/bitmap.h"
|
#include "wx/bitmap.h"
|
||||||
#include "wx/dcmemory.h"
|
#include "wx/dcmemory.h"
|
||||||
|
Reference in New Issue
Block a user