Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv32701/src/gui

Modified Files:
        ClickURL.cpp wxComposeView.cpp wxMDialogs.cpp wxOptionsDlg.cpp 
Log Message:
support for cygwin

Index: ClickURL.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/ClickURL.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -b -u -2 -r1.7 -r1.8
--- ClickURL.cpp        16 Dec 2002 11:51:32 -0000      1.7
+++ ClickURL.cpp        23 Jun 2003 01:23:46 -0000      1.8
@@ -29,4 +29,7 @@
 
    #include <wx/menu.h>
+#ifdef __CYGWIN__
+   #include <wx/msw/registry.h>
+#endif
 #endif //USE_PCH
 
@@ -314,4 +317,5 @@
                      {
                         // magic incantation understood by wxMSW
+#ifndef __CYGWIN__ // FIXME
                         command << "WX_DDE#"
                                 << wxString(wxRegKey(key, "command")) << '#'
@@ -319,4 +323,5 @@
                                 << '#' << ddeTopic << '#'
                                 << ddeCmd;
+#endif
                      }
                   }
@@ -335,6 +340,8 @@
       else // easy case: open in the same window
       {
+#ifndef __CYGWIN__ // FIXME ShellExecute() is defined in <w32api/shellapi.h>, how to 
include it?
          bOk = (int)ShellExecute(NULL, "open", m_url,
                                  NULL, NULL, SW_SHOWNORMAL ) > 32;
+#endif
       }
 #else  // Unix

Index: wxComposeView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxComposeView.cpp,v
retrieving revision 1.334
retrieving revision 1.335
diff -b -u -2 -r1.334 -r1.335
--- wxComposeView.cpp   11 Apr 2003 23:44:40 -0000      1.334
+++ wxComposeView.cpp   23 Jun 2003 01:23:46 -0000      1.335
@@ -53,5 +53,8 @@
 
 #  include <ctype.h>          // for isspace()
+#ifdef __CYGWIN__
+#  include <sys/unistd.h>     // for getpid()
 #endif
+#endif // USE_PCH
 
 #include <wx/filename.h>

Index: wxMDialogs.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMDialogs.cpp,v
retrieving revision 1.392
retrieving revision 1.393
diff -b -u -2 -r1.392 -r1.393
--- wxMDialogs.cpp      24 Mar 2003 02:57:33 -0000      1.392
+++ wxMDialogs.cpp      23 Jun 2003 01:23:46 -0000      1.393
@@ -128,5 +128,5 @@
 // ----------------------------------------------------------------------------
 
-#if defined(OS_WIN) || defined(__CYGWIN__)
+#if defined(OS_WIN)
 #  define Mahogany      "Mahogany"
 #  define PythonPowered "PythonPowered"

Index: wxOptionsDlg.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxOptionsDlg.cpp,v
retrieving revision 1.369
retrieving revision 1.370
diff -b -u -2 -r1.369 -r1.370
--- wxOptionsDlg.cpp    20 Jun 2003 18:29:02 -0000      1.369
+++ wxOptionsDlg.cpp    23 Jun 2003 01:23:46 -0000      1.370
@@ -1740,5 +1740,5 @@
    CONFIG_ENTRY(MP_NEWMAIL_PLAY_SOUND),
    CONFIG_ENTRY(MP_NEWMAIL_SOUND_FILE),
-#ifdef OS_UNIX
+#if defined(OS_UNIX) || defined(__CYGWIN__)
    CONFIG_ENTRY(MP_NEWMAIL_SOUND_PROGRAM),
 #endif // OS_UNIX



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to