From: Michael Wetherell Date: Mon, 6 Jun 2005 19:23:11 +0000 (+0000) Subject: Compilation fix for Cygwin X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/508c5a09088a0c24d094eb068a60d22bceea2ea5 Compilation fix for Cygwin git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/net/smapi.cpp b/contrib/src/net/smapi.cpp index 8ac7765ac5..95b3287d62 100644 --- a/contrib/src/net/smapi.cpp +++ b/contrib/src/net/smapi.cpp @@ -29,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"