Various cygwin compilation fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -130,6 +130,12 @@
|
||||
|
||||
#include <Carbon/Carbon.h>
|
||||
#endif // __WXMAC__ && __DARWIN__
|
||||
|
||||
#if defined(__CYGWIN__)
|
||||
#if !defined(wxSIZE_T_IS_UINT)
|
||||
#define wxSIZE_T_IS_UINT
|
||||
#endif
|
||||
#endif
|
||||
#elif defined(applec) || \
|
||||
defined(THINK_C) || \
|
||||
(defined(__MWERKS__) && !defined(__INTEL__))
|
||||
|
@@ -68,6 +68,9 @@
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#elif defined(__CYGWIN__)
|
||||
#include <stddef.h>
|
||||
#include <wchar.h>
|
||||
#endif
|
||||
#elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400)
|
||||
// VisualAge 4.0+ supports TCHAR
|
||||
|
@@ -94,7 +94,9 @@
|
||||
#endif
|
||||
|
||||
#undef __WIN95__
|
||||
#ifndef __WIN32__
|
||||
#undef __WIN32__
|
||||
#endif
|
||||
#undef __GNUWIN32__
|
||||
#undef STRICT
|
||||
#undef WINVER
|
||||
|
@@ -474,7 +474,7 @@ wxMimeTypesManager::~wxMimeTypesManager()
|
||||
|
||||
bool wxMimeTypesManager::Unassociate(wxFileType *ft)
|
||||
{
|
||||
#if defined(__UNIX__) && !defined(__WXPM__)
|
||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__)
|
||||
return m_impl->Unassociate(ft);
|
||||
#else
|
||||
return ft->Unassociate();
|
||||
@@ -584,7 +584,7 @@ size_t wxMimeTypesManager::EnumAllFileTypes(wxArrayString& mimetypes)
|
||||
void wxMimeTypesManager::Initialize(int mcapStyle,
|
||||
const wxString& sExtraDir)
|
||||
{
|
||||
#if defined(__UNIX__) && !defined(__WXPM__)
|
||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__)
|
||||
EnsureImpl();
|
||||
|
||||
m_impl->Initialize(mcapStyle, sExtraDir);
|
||||
@@ -597,7 +597,7 @@ void wxMimeTypesManager::Initialize(int mcapStyle,
|
||||
// and this function clears all the data from the manager
|
||||
void wxMimeTypesManager::ClearData()
|
||||
{
|
||||
#if defined(__UNIX__) && !defined(__WXPM__)
|
||||
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__)
|
||||
EnsureImpl();
|
||||
|
||||
m_impl->ClearData();
|
||||
|
@@ -1,4 +1,8 @@
|
||||
|
||||
ifeq ($(WXWIN),)
|
||||
WXWIN=../..
|
||||
endif
|
||||
|
||||
LIBTARGET=$(WXWIN)/lib/libregex.a
|
||||
|
||||
OBJECTS= \
|
||||
|
Reference in New Issue
Block a user