]> git.saurik.com Git - wxWidgets.git/commitdiff
Various cygwin compilation fixes.
authorMattia Barbon <mbarbon@cpan.org>
Wed, 24 Oct 2001 20:56:37 +0000 (20:56 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Wed, 24 Oct 2001 20:56:37 +0000 (20:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h
include/wx/wxchar.h
setup.h.in
src/common/mimecmn.cpp
src/regex/makefile.g95

index 064b94ce47558ee42a7c596093d1b9d08b111fca..8a70d08344c0ea6ee9151c3941f6e85d728114eb 100644 (file)
 
         #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__))
index c185288ce6be8a45894ca5153a82b6c98a1c2e53..5ac03f6416c5983a2d0548dd2a450b29f7dc79ac 100644 (file)
@@ -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
index f6e91fec797ca7815abccdd25da4f426c5c0127c..5ad250d7a2277406c6793894d2ac69190213b13c 100644 (file)
@@ -94,7 +94,9 @@
 #endif
 
 #undef __WIN95__
+#ifndef __WIN32__
 #undef __WIN32__
+#endif
 #undef __GNUWIN32__
 #undef STRICT
 #undef WINVER
index 8a16ced893591f3c2bd0bfedbf94587588b1b72f..6ee6a7a7fa08d1717e60f47798d342664c5f61ae 100644 (file)
@@ -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();
index 9043156a1d913d2e5762b3616068e0c773969597..06c95c8f9c0135cdfbc774be579fe852f82359ec 100644 (file)
@@ -1,4 +1,8 @@
 
+ifeq ($(WXWIN),)
+WXWIN=../..
+endif
+
 LIBTARGET=$(WXWIN)/lib/libregex.a
 
 OBJECTS= \