#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__))
#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
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();
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);
// 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();