]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fix for Cygwin
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Mon, 6 Jun 2005 19:23:11 +0000 (19:23 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Mon, 6 Jun 2005 19:23:11 +0000 (19:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/net/smapi.cpp

index 8ac7765ac569a92141ccc06917d54be385b45b58..95b3287d62b1ee9ad2edc491ceef1396715924cf 100644 (file)
 #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 <w32api/mapi.h>
+#else
 #include <mapi.h>
+#endif
 
 #include "wx/net/smapi.h"