X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c59f3b2d96647662dc1a80283c005e19184cc5dc..5f7348ce627157e21bec507623ebd31c1e9dc762:/contrib/src/net/smapi.cpp diff --git a/contrib/src/net/smapi.cpp b/contrib/src/net/smapi.cpp index 3126be5a6d..95b3287d62 100644 --- a/contrib/src/net/smapi.cpp +++ b/contrib/src/net/smapi.cpp @@ -20,6 +20,8 @@ #pragma hdrstop #endif +#ifdef __WXMSW__ + #ifndef WX_PRECOMP #include "wx/wx.h" #endif @@ -27,7 +29,15 @@ #include "wx/string.h" #include "wx/msw/private.h" +// mapi.h in Cygwin's include directory isn't a full implementation and is +// not sufficient for this lib. However recent versions of Cygwin also +// have another mapi.h in include/w32api which can be used. +// +#ifdef __CYGWIN__ +#include +#else #include +#endif #include "wx/net/smapi.h" @@ -487,3 +497,5 @@ long wxMapiSession::GetLastError() const { return m_data->m_nLastError; } + +#endif // __WXMSW__