diff options
| -rw-r--r-- | src/vmime/net/imap/IMAPSearchAttributes.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vmime/net/imap/IMAPSearchAttributes.hpp b/src/vmime/net/imap/IMAPSearchAttributes.hpp index 5e96f56c..2af8399e 100644 --- a/src/vmime/net/imap/IMAPSearchAttributes.hpp +++ b/src/vmime/net/imap/IMAPSearchAttributes.hpp @@ -40,6 +40,14 @@ #include "vmime/net/messageSet.hpp" +// <windows.h> (pulled in by winsock2.h) defines TEXT as a macro, which +// mangles the IMAP SEARCH key of the same name declared below. vmime never +// uses the Windows macro, so drop it here. +#ifdef TEXT +# undef TEXT +#endif + + namespace vmime { namespace net { namespace imap { |
