X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f109709da1d477ed8071617b88074121e40223f..64e941edd4c6ff84e75e98ec551c42096f31ec77:/contrib/src/net/smapi.cpp diff --git a/contrib/src/net/smapi.cpp b/contrib/src/net/smapi.cpp index 8ac7765ac5..d5db18bf06 100644 --- a/contrib/src/net/smapi.cpp +++ b/contrib/src/net/smapi.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "smapi.h" -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -29,7 +25,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"