Applied patch [ 662321 ] Port of wxWindows to Wine
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -143,6 +143,7 @@ contrib/samples/animate/*.txt
|
|||||||
contrib/samples/animate/*.ico
|
contrib/samples/animate/*.ico
|
||||||
contrib/samples/animate/*.bmp
|
contrib/samples/animate/*.bmp
|
||||||
contrib/samples/animate/*.rc
|
contrib/samples/animate/*.rc
|
||||||
|
contrib/samples/animate/*.gif
|
||||||
contrib/samples/animate/AniTestVC.dsp
|
contrib/samples/animate/AniTestVC.dsp
|
||||||
contrib/samples/animate/AniTestVC.dsw
|
contrib/samples/animate/AniTestVC.dsw
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ No base class
|
|||||||
|
|
||||||
\membersection{Constructors}
|
\membersection{Constructors}
|
||||||
|
|
||||||
\helpref{wxTimeSpan}{wxtimespan}
|
\helpref{wxTimeSpan}{wxtimespanctor}
|
||||||
|
|
||||||
\membersection{Accessors}
|
\membersection{Accessors}
|
||||||
|
|
||||||
@@ -308,7 +308,7 @@ Returns the timespan for the given number of weeks.
|
|||||||
|
|
||||||
Returns the timespan for one week.
|
Returns the timespan for one week.
|
||||||
|
|
||||||
\membersection{wxTimeSpan::wxTimeSpan}\label{wxtimespan}
|
\membersection{wxTimeSpan::wxTimeSpan}\label{wxtimespanctor}
|
||||||
|
|
||||||
\func{}{wxTimeSpan}{\void}
|
\func{}{wxTimeSpan}{\void}
|
||||||
|
|
||||||
|
@@ -75,7 +75,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
|
|||||||
|
|
||||||
// Microsoft compiler loves underscores, feed them to it
|
// Microsoft compiler loves underscores, feed them to it
|
||||||
#if defined( __VISUALC__ ) \
|
#if defined( __VISUALC__ ) \
|
||||||
|| ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
|
|| ( defined(__MINGW32__) && !defined(__WINE__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
|
||||||
|| ( defined(__MWERKS__) && defined(__WXMSW__) )
|
|| ( defined(__MWERKS__) && defined(__WXMSW__) )
|
||||||
// functions
|
// functions
|
||||||
#define wxClose _close
|
#define wxClose _close
|
||||||
|
@@ -63,6 +63,7 @@
|
|||||||
#define wxLongLongFmtSpec _T("I64")
|
#define wxLongLongFmtSpec _T("I64")
|
||||||
#elif (defined(SIZEOF_LONG_LONG) && SIZEOF_LONG_LONG >= 8) || \
|
#elif (defined(SIZEOF_LONG_LONG) && SIZEOF_LONG_LONG >= 8) || \
|
||||||
defined(__MINGW32__) || \
|
defined(__MINGW32__) || \
|
||||||
|
defined(__GNUC__) || \
|
||||||
defined(__CYGWIN__) || \
|
defined(__CYGWIN__) || \
|
||||||
defined(__WXMICROWIN__) || \
|
defined(__WXMICROWIN__) || \
|
||||||
(defined(__DJGPP__) && __DJGPP__ >= 2)
|
(defined(__DJGPP__) && __DJGPP__ >= 2)
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
#ifndef _WX_MSW_GCCPRIV_H_
|
#ifndef _WX_MSW_GCCPRIV_H_
|
||||||
#define _WX_MSW_GCCPRIV_H_
|
#define _WX_MSW_GCCPRIV_H_
|
||||||
|
|
||||||
#if defined( __MINGW32__ ) && !defined( HAVE_W32API_H )
|
#if defined( __MINGW32__ ) && !defined(__WINE__) && !defined( HAVE_W32API_H )
|
||||||
#if ( __GNUC__ > 2 ) || ( ( __GNUC__ == 2 ) && ( __GNUC_MINOR__ >= 95 ) )
|
#if ( __GNUC__ > 2 ) || ( ( __GNUC__ == 2 ) && ( __GNUC_MINOR__ >= 95 ) )
|
||||||
#include <_mingw.h>
|
#include <_mingw.h>
|
||||||
#if __MINGW32_MAJOR_VERSION >= 1
|
#if __MINGW32_MAJOR_VERSION >= 1
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
// Cygwin / Mingw32 with gcc >= 2.95 use new windows headers which
|
// Cygwin / Mingw32 with gcc >= 2.95 use new windows headers which
|
||||||
// are more ms-like (header author is Anders Norlander, hence the name)
|
// are more ms-like (header author is Anders Norlander, hence the name)
|
||||||
#if (defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) || ((__GNUC__==2) && (__GNUC_MINOR__>=95)))
|
#if (defined(__MINGW32__) || defined(__CYGWIN__) || defined(__WINE__)) && ((__GNUC__>2) || ((__GNUC__==2) && (__GNUC_MINOR__>=95)))
|
||||||
#ifndef wxUSE_NORLANDER_HEADERS
|
#ifndef wxUSE_NORLANDER_HEADERS
|
||||||
#define wxUSE_NORLANDER_HEADERS 1
|
#define wxUSE_NORLANDER_HEADERS 1
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1068,7 +1068,7 @@
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef wxUSE_NORLANDER_HEADERS
|
#ifndef wxUSE_NORLANDER_HEADERS
|
||||||
#if (defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
|
#if ((defined(__MINGW32__) && defined(__CYGWIN__)) ||defined(__WINE__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
|
||||||
# define wxUSE_NORLANDER_HEADERS 1
|
# define wxUSE_NORLANDER_HEADERS 1
|
||||||
#else
|
#else
|
||||||
# define wxUSE_NORLANDER_HEADERS 0
|
# define wxUSE_NORLANDER_HEADERS 0
|
||||||
|
@@ -137,7 +137,7 @@
|
|||||||
#define __HPUX__
|
#define __HPUX__
|
||||||
#endif /* HP-UX */
|
#endif /* HP-UX */
|
||||||
|
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__) || defined(__WINE__)
|
||||||
#if !defined(wxSIZE_T_IS_UINT)
|
#if !defined(wxSIZE_T_IS_UINT)
|
||||||
#define wxSIZE_T_IS_UINT
|
#define wxSIZE_T_IS_UINT
|
||||||
#endif
|
#endif
|
||||||
|
@@ -101,7 +101,7 @@ public:
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__UNIX__) && (!defined(__WXMAC__) || defined(__DARWIN__))
|
#if defined(__UNIX__) && !defined(__WINE__) && (!defined(__WXMAC__) || defined(__DARWIN__))
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#ifndef __VMS__
|
#ifndef __VMS__
|
||||||
# include <sys/un.h>
|
# include <sys/un.h>
|
||||||
|
@@ -136,10 +136,6 @@ all:
|
|||||||
nmake -f makefile.vc $(MAKEFLAGS)
|
nmake -f makefile.vc $(MAKEFLAGS)
|
||||||
cd $(WXDIR)\samples\splitter
|
cd $(WXDIR)\samples\splitter
|
||||||
nmake -f makefile.vc $(MAKEFLAGS)
|
nmake -f makefile.vc $(MAKEFLAGS)
|
||||||
!if "$(COMPIL)"==""
|
|
||||||
cd $(WXDIR)\samples\tab
|
|
||||||
nmake -f makefile.vc $(MAKEFLAGS)
|
|
||||||
!endif
|
|
||||||
cd $(WXDIR)\samples\taskbar
|
cd $(WXDIR)\samples\taskbar
|
||||||
nmake -f makefile.vc $(MAKEFLAGS)
|
nmake -f makefile.vc $(MAKEFLAGS)
|
||||||
cd $(WXDIR)\samples\text
|
cd $(WXDIR)\samples\text
|
||||||
@@ -252,8 +248,6 @@ clean:
|
|||||||
nmake -f makefile.vc clean
|
nmake -f makefile.vc clean
|
||||||
cd $(WXDIR)\samples\splitter
|
cd $(WXDIR)\samples\splitter
|
||||||
nmake -f makefile.vc clean
|
nmake -f makefile.vc clean
|
||||||
cd $(WXDIR)\samples\tab
|
|
||||||
nmake -f makefile.vc clean
|
|
||||||
cd $(WXDIR)\samples\taskbar
|
cd $(WXDIR)\samples\taskbar
|
||||||
nmake -f makefile.vc clean
|
nmake -f makefile.vc clean
|
||||||
cd $(WXDIR)\samples\text
|
cd $(WXDIR)\samples\text
|
||||||
|
@@ -771,18 +771,6 @@ Package=<4>
|
|||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
Project: "tab"=.\tab\tab.dsp - Package Owner=<4>
|
|
||||||
|
|
||||||
Package=<5>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
Package=<4>
|
|
||||||
{{{
|
|
||||||
}}}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
Project: "taskbar"=.\taskbar\taskbar.dsp - Package Owner=<4>
|
Project: "taskbar"=.\taskbar\taskbar.dsp - Package Owner=<4>
|
||||||
|
|
||||||
Package=<5>
|
Package=<5>
|
||||||
|
@@ -103,7 +103,7 @@
|
|||||||
#elif defined(__MWERKS__)
|
#elif defined(__MWERKS__)
|
||||||
long wxmw_timezone = 28800;
|
long wxmw_timezone = 28800;
|
||||||
#define WX_TIMEZONE wxmw_timezone
|
#define WX_TIMEZONE wxmw_timezone
|
||||||
#elif defined(__DJGPP__)
|
#elif defined(__DJGPP__) || defined(__WINE__)
|
||||||
#include <sys/timeb.h>
|
#include <sys/timeb.h>
|
||||||
#include <values.h>
|
#include <values.h>
|
||||||
static long wxGetTimeZone()
|
static long wxGetTimeZone()
|
||||||
|
@@ -28,6 +28,9 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h> // for memmove
|
#include <string.h> // for memmove
|
||||||
|
#ifdef __WINE__
|
||||||
|
#include <search.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef max
|
#ifndef max
|
||||||
#define max(a, b) (((a) > (b)) ? (a) : (b))
|
#define max(a, b) (((a) > (b)) ? (a) : (b))
|
||||||
|
@@ -23,6 +23,9 @@
|
|||||||
#include "wx/encconv.h"
|
#include "wx/encconv.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#ifdef __WINE__
|
||||||
|
#include <search.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// conversion tables, generated by scripts in $(WXWIN)/misc/unictabl:
|
// conversion tables, generated by scripts in $(WXWIN)/misc/unictabl:
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
|
@@ -1262,7 +1262,7 @@ bool wxMkdir(const wxString& dir, int perm)
|
|||||||
|
|
||||||
// assume mkdir() has 2 args on non Windows-OS/2 platforms and on Windows too
|
// assume mkdir() has 2 args on non Windows-OS/2 platforms and on Windows too
|
||||||
// for the GNU compiler
|
// for the GNU compiler
|
||||||
#if (!(defined(__WXMSW__) || defined(__WXPM__) || defined(__DOS__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) || defined(__WXMICROWIN__)
|
#if (!(defined(__WXMSW__) || defined(__WXPM__) || defined(__DOS__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) || defined(__WINE__) || defined(__WXMICROWIN__)
|
||||||
if ( mkdir(wxFNCONV(dirname), perm) != 0 )
|
if ( mkdir(wxFNCONV(dirname), perm) != 0 )
|
||||||
#elif defined(__WXPM__)
|
#elif defined(__WXPM__)
|
||||||
if (::DosCreateDir((PSZ)dirname, NULL) != 0) // enhance for EAB's??
|
if (::DosCreateDir((PSZ)dirname, NULL) != 0) // enhance for EAB's??
|
||||||
|
@@ -31,6 +31,9 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#ifdef __WINE__
|
||||||
|
#include <search.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
|
@@ -486,7 +486,7 @@ wxMimeTypesManager::~wxMimeTypesManager()
|
|||||||
|
|
||||||
bool wxMimeTypesManager::Unassociate(wxFileType *ft)
|
bool wxMimeTypesManager::Unassociate(wxFileType *ft)
|
||||||
{
|
{
|
||||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__)
|
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__) && !defined(__WINE__)
|
||||||
return m_impl->Unassociate(ft);
|
return m_impl->Unassociate(ft);
|
||||||
#else
|
#else
|
||||||
return ft->Unassociate();
|
return ft->Unassociate();
|
||||||
@@ -596,7 +596,7 @@ size_t wxMimeTypesManager::EnumAllFileTypes(wxArrayString& mimetypes)
|
|||||||
void wxMimeTypesManager::Initialize(int mcapStyle,
|
void wxMimeTypesManager::Initialize(int mcapStyle,
|
||||||
const wxString& sExtraDir)
|
const wxString& sExtraDir)
|
||||||
{
|
{
|
||||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__)
|
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__) && !defined(__WINE__)
|
||||||
EnsureImpl();
|
EnsureImpl();
|
||||||
|
|
||||||
m_impl->Initialize(mcapStyle, sExtraDir);
|
m_impl->Initialize(mcapStyle, sExtraDir);
|
||||||
@@ -609,7 +609,7 @@ void wxMimeTypesManager::Initialize(int mcapStyle,
|
|||||||
// and this function clears all the data from the manager
|
// and this function clears all the data from the manager
|
||||||
void wxMimeTypesManager::ClearData()
|
void wxMimeTypesManager::ClearData()
|
||||||
{
|
{
|
||||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__)
|
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__) && !defined(__WINE__)
|
||||||
EnsureImpl();
|
EnsureImpl();
|
||||||
|
|
||||||
m_impl->ClearData();
|
m_impl->ClearData();
|
||||||
|
@@ -46,7 +46,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxIPV4address, wxSockAddress)
|
|||||||
#ifdef ENABLE_IPV6
|
#ifdef ENABLE_IPV6
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxIPV6address, wxSockAddress)
|
IMPLEMENT_DYNAMIC_CLASS(wxIPV6address, wxSockAddress)
|
||||||
#endif
|
#endif
|
||||||
#if defined(__UNIX__) && (!defined(__WXMAC__) || defined(__DARWIN__))
|
#if defined(__UNIX__) && !defined(__WINE__) && (!defined(__WXMAC__) || defined(__DARWIN__))
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress)
|
IMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -237,7 +237,7 @@ unsigned short wxIPV6address::Service()
|
|||||||
|
|
||||||
#endif // 0
|
#endif // 0
|
||||||
|
|
||||||
#if defined(__UNIX__) && (!defined(__WXMAC__) || defined(__DARWIN__))
|
#if defined(__UNIX__) && !defined(__WINE__) && (!defined(__WXMAC__) || defined(__DARWIN__))
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// wxUNIXaddress
|
// wxUNIXaddress
|
||||||
|
@@ -89,7 +89,7 @@ static wxSockAddress *
|
|||||||
GetAddressFromName(const wxString& serverName, const wxString& host = _T(""))
|
GetAddressFromName(const wxString& serverName, const wxString& host = _T(""))
|
||||||
{
|
{
|
||||||
// we always use INET sockets under non-Unix systems
|
// we always use INET sockets under non-Unix systems
|
||||||
#if defined(__UNIX__) && !defined(__WXMAC__)
|
#if defined(__UNIX__) && !defined(__WXMAC__) && !defined(__WINE__)
|
||||||
// under Unix, if the server name looks like a path, create a AF_UNIX
|
// under Unix, if the server name looks like a path, create a AF_UNIX
|
||||||
// socket instead of AF_INET one
|
// socket instead of AF_INET one
|
||||||
if ( serverName.Find(_T('/')) != wxNOT_FOUND )
|
if ( serverName.Find(_T('/')) != wxNOT_FOUND )
|
||||||
|
@@ -41,6 +41,9 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#ifdef __WINE__
|
||||||
|
#include <search.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __SALFORDC__
|
#ifdef __SALFORDC__
|
||||||
#include <clib.h>
|
#include <clib.h>
|
||||||
|
@@ -105,7 +105,7 @@ size_t WXDLLEXPORT wxWC2MB(char *buf, const wchar_t *pwz, size_t n)
|
|||||||
|
|
||||||
bool WXDLLEXPORT wxOKlibc()
|
bool WXDLLEXPORT wxOKlibc()
|
||||||
{
|
{
|
||||||
#if wxUSE_WCHAR_T && defined(__UNIX__) && defined(__GLIBC__)
|
#if wxUSE_WCHAR_T && defined(__UNIX__) && defined(__GLIBC__) && !defined(__WINE__)
|
||||||
// glibc 2.0 uses UTF-8 even when it shouldn't
|
// glibc 2.0 uses UTF-8 even when it shouldn't
|
||||||
wchar_t res = 0;
|
wchar_t res = 0;
|
||||||
if ((MB_CUR_MAX == 2) &&
|
if ((MB_CUR_MAX == 2) &&
|
||||||
|
@@ -130,6 +130,7 @@ typedef char JOCTET;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* UINT8 must hold at least the values 0..255. */
|
/* UINT8 must hold at least the values 0..255. */
|
||||||
|
#ifndef __WINE_BASETSD_H
|
||||||
|
|
||||||
#ifdef HAVE_UNSIGNED_CHAR
|
#ifdef HAVE_UNSIGNED_CHAR
|
||||||
typedef unsigned char UINT8;
|
typedef unsigned char UINT8;
|
||||||
@@ -155,6 +156,8 @@ typedef unsigned int UINT16;
|
|||||||
typedef short INT16;
|
typedef short INT16;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* __WINE_BASETSD_H */
|
||||||
|
|
||||||
/* INT32 must hold at least signed 32-bit values. */
|
/* INT32 must hold at least signed 32-bit values. */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -52,12 +52,21 @@ MINGW32=1
|
|||||||
# gcc 3.x provides a win32api.h header
|
# gcc 3.x provides a win32api.h header
|
||||||
MINGW32VERSION=3.0
|
MINGW32VERSION=3.0
|
||||||
|
|
||||||
|
# If you want to compile on Wine, simply uncomment this variable
|
||||||
|
# If you don't want to edit the file, you can simply define it
|
||||||
|
# on the command line like so: make WINE=1 -f makefile.g95
|
||||||
|
#WINE=1
|
||||||
|
|
||||||
# If we're using MSYS, or other utilities that use forward slashes,
|
# If we're using MSYS, or other utilities that use forward slashes,
|
||||||
# you need to set this when invoking the makefile from DOS, or the
|
# you need to set this when invoking the makefile from DOS, or the
|
||||||
# wrong separators will be assumed. However, if you're using MSYS,
|
# wrong separators will be assumed. However, if you're using MSYS,
|
||||||
# you really ought to invoke the makefile from MSYS--or, even better,
|
# you really ought to invoke the makefile from MSYS--or, even better,
|
||||||
# use the './configure && make' technique that MSYS is designed for.
|
# use the './configure && make' technique that MSYS is designed for.
|
||||||
|
ifndef WINE
|
||||||
#OSTYPE=msys
|
#OSTYPE=msys
|
||||||
|
else
|
||||||
|
OSTYPE=msys
|
||||||
|
endif
|
||||||
|
|
||||||
# If building DLL, the version
|
# If building DLL, the version
|
||||||
WXVERSION=250
|
WXVERSION=250
|
||||||
@@ -133,7 +142,9 @@ ifeq (,$(findstring $(MINGW32VERSION),2.8 2.9-early 2.95-late))
|
|||||||
# Versions since 3.0 provide win32api.h . An old comment said to
|
# Versions since 3.0 provide win32api.h . An old comment said to
|
||||||
# define this 'if you have w32api >= 0.5', but mingw 2.95.2-1
|
# define this 'if you have w32api >= 0.5', but mingw 2.95.2-1
|
||||||
# has no such header.
|
# has no such header.
|
||||||
|
ifndef WINE
|
||||||
_USE_W32API_HEADER_IF_SUPPORTED = -DHAVE_W32API_H
|
_USE_W32API_HEADER_IF_SUPPORTED = -DHAVE_W32API_H
|
||||||
|
endif
|
||||||
#
|
#
|
||||||
# Revision 1.70.2.6 of this file suggested '--pipe' for mingw but
|
# Revision 1.70.2.6 of this file suggested '--pipe' for mingw but
|
||||||
# not for cygwin, and only for version 3.0 or later. Since then,
|
# not for cygwin, and only for version 3.0 or later. Since then,
|
||||||
@@ -145,11 +156,14 @@ ifeq (,$(findstring $(MINGW32VERSION),2.8 2.9-early 2.95-late))
|
|||||||
#
|
#
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C compiler
|
# Define the C++ and C compiler respectively
|
||||||
|
ifndef WINE
|
||||||
CXX = g++
|
CXX = g++
|
||||||
|
|
||||||
# C compiler
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
else
|
||||||
|
CXX = wineg++
|
||||||
|
CC = winegcc
|
||||||
|
endif
|
||||||
|
|
||||||
# Compiler used for LEX generated C
|
# Compiler used for LEX generated C
|
||||||
# For now at least, it can be the same as the regular C compiler
|
# For now at least, it can be the same as the regular C compiler
|
||||||
@@ -169,7 +183,11 @@ CCLEX = $(CC)
|
|||||||
# Settings for Cyginw/Mingw32
|
# Settings for Cyginw/Mingw32
|
||||||
# Some versions of windres cannot cope with the --preprocessor
|
# Some versions of windres cannot cope with the --preprocessor
|
||||||
# option. Uncomment the RCPREPROCESSOR line below if yours can.
|
# option. Uncomment the RCPREPROCESSOR line below if yours can.
|
||||||
|
ifndef WINE
|
||||||
RESCOMP=windres $(_USE_TEMP_FILE_IF_SUPPORTED)
|
RESCOMP=windres $(_USE_TEMP_FILE_IF_SUPPORTED)
|
||||||
|
else
|
||||||
|
RESCOMP=wrc
|
||||||
|
endif
|
||||||
RCINPUTSWITCH=-i
|
RCINPUTSWITCH=-i
|
||||||
RCOUTPUTSWITCH=-o
|
RCOUTPUTSWITCH=-o
|
||||||
RCINCSWITCH=--include-dir
|
RCINCSWITCH=--include-dir
|
||||||
|
@@ -1381,6 +1381,6 @@ void wxWakeUpIdle()
|
|||||||
|
|
||||||
// For some reason, with MSVC++ 1.5, WinMain isn't linked in properly
|
// For some reason, with MSVC++ 1.5, WinMain isn't linked in properly
|
||||||
// if in a separate file. So include it here to ensure it's linked.
|
// if in a separate file. So include it here to ensure it's linked.
|
||||||
#if (defined(__VISUALC__) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !defined(__TWIN32__) && !defined(WXMAKINGDLL))
|
#if (defined(__VISUALC__) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !defined(__WINE__) && !defined(__TWIN32__) && !defined(WXMAKINGDLL))
|
||||||
#include "main.cpp"
|
#include "main.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
@@ -55,6 +55,7 @@ DEFINE_EVENT_TYPE(wxEVT_DIALUP_DISCONNECTED)
|
|||||||
!defined(__GNUWIN32_OLD__) && \
|
!defined(__GNUWIN32_OLD__) && \
|
||||||
!defined(__WATCOMC__) && \
|
!defined(__WATCOMC__) && \
|
||||||
!defined(__WXWINE__) && \
|
!defined(__WXWINE__) && \
|
||||||
|
!defined(__WINE__) && \
|
||||||
(!defined(__VISUALC__) || (__VISUALC__ >= 1020))
|
(!defined(__VISUALC__) || (__VISUALC__ >= 1020))
|
||||||
|
|
||||||
#include <ras.h>
|
#include <ras.h>
|
||||||
|
@@ -152,7 +152,7 @@ bool wxFontEnumeratorHelper::SetEncoding(wxFontEncoding encoding)
|
|||||||
#define wxFONTENUMPROC FONTENUMPROCEX
|
#define wxFONTENUMPROC FONTENUMPROCEX
|
||||||
#elif (defined(__GNUWIN32__) && !defined(__CYGWIN10__) && !wxCHECK_W32API_VERSION( 1, 1 ))
|
#elif (defined(__GNUWIN32__) && !defined(__CYGWIN10__) && !wxCHECK_W32API_VERSION( 1, 1 ))
|
||||||
#if wxUSE_NORLANDER_HEADERS
|
#if wxUSE_NORLANDER_HEADERS
|
||||||
#define wxFONTENUMPROC int(*)(const LOGFONT *, const TEXTMETRIC *, long unsigned int, LPARAM)
|
#define wxFONTENUMPROC FONTENUMPROC
|
||||||
#else
|
#else
|
||||||
#define wxFONTENUMPROC int(*)(ENUMLOGFONTEX *, NEWTEXTMETRICEX*, int, LPARAM)
|
#define wxFONTENUMPROC int(*)(ENUMLOGFONTEX *, NEWTEXTMETRICEX*, int, LPARAM)
|
||||||
#endif
|
#endif
|
||||||
|
@@ -26,6 +26,8 @@
|
|||||||
# pragma warning(disable:4100)
|
# pragma warning(disable:4100)
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
|
#include <winsock.h>
|
||||||
|
|
||||||
#ifndef __GSOCKET_STANDALONE__
|
#ifndef __GSOCKET_STANDALONE__
|
||||||
# include "wx/defs.h"
|
# include "wx/defs.h"
|
||||||
# include "wx/setup.h"
|
# include "wx/setup.h"
|
||||||
@@ -56,8 +58,6 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include <winsock.h>
|
|
||||||
|
|
||||||
/* if we use configure for MSW SOCKLEN_T will be already defined */
|
/* if we use configure for MSW SOCKLEN_T will be already defined */
|
||||||
#ifndef SOCKLEN_T
|
#ifndef SOCKLEN_T
|
||||||
# define SOCKLEN_T int
|
# define SOCKLEN_T int
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
// With Borland C++, all samples crash if this is compiled in.
|
// With Borland C++, all samples crash if this is compiled in.
|
||||||
#if wxUSE_OLE &&!defined(__WATCOMC__) && !(defined(__BORLANDC__) && (__BORLANDC__ < 0x520)) && !defined(__CYGWIN10__) && !defined(__WXWINE__)
|
#if wxUSE_OLE &&!defined(__WATCOMC__) && !(defined(__BORLANDC__) && (__BORLANDC__ < 0x520)) && !defined(__CYGWIN10__) && !defined(__WXWINE__)
|
||||||
|
|
||||||
|
#define _FORCENAMELESSUNION
|
||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/msw/ole/automtn.h"
|
#include "wx/msw/ole/automtn.h"
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
|
@@ -1157,9 +1157,13 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__) || defined(__WINE__)
|
||||||
# undef PNGAPI
|
# undef PNGAPI
|
||||||
# define PNGAPI __cdecl
|
# if defined(__WINE__)
|
||||||
|
# define PNGAPI
|
||||||
|
# else
|
||||||
|
# define PNGAPI __cdecl
|
||||||
|
# endif
|
||||||
# undef PNG_IMPEXP
|
# undef PNG_IMPEXP
|
||||||
# define PNG_IMPEXP
|
# define PNG_IMPEXP
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user