MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.58k stars 623 forks source link

fix: Fix compile error on windows platform #1968

Open 200smile opened 1 year ago

200smile commented 1 year ago

Fix compile error on windows platform

  1. "DEPRECATED_ATTRIBUTE" error ref https://github.com/MailCore/mailcore2/pull/1957
  2. "error C4996" use _CRT_SECURE_NO_WARNINGS
  3. "<sys/mmap.h>" missing windows, use https://code.google.com/archive/p/mman-win32/
  4. "'type cannot convert" modify function definition
  5. Completing Missing headers for windows