X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnntp%2Fmime%2FMime.cpp;h=fcadcd5d675d682ac80a203663342750b1466afe;hb=868c533e84b3c81b6604b45b84efa32073aa20b4;hp=e79d0595244b69aecddfa36cb8a4182db84398fd;hpb=6b896a9e1dc143bba86795be1e9336549db9b85f;p=fms.git diff --git a/src/nntp/mime/Mime.cpp b/src/nntp/mime/Mime.cpp index e79d059..fcadcd5 100644 --- a/src/nntp/mime/Mime.cpp +++ b/src/nntp/mime/Mime.cpp @@ -13,6 +13,12 @@ #include #include +#ifndef _WIN32 + #define stricmp strcasecmp + #define strnicmp strncasecmp + #define memicmp memcmp +#endif + #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; @@ -464,7 +470,16 @@ list::iterator CMimeHeader::FindField(const char* pszFieldName) #include #include #include -#include + +#ifdef _WIN32 + #include +#else + #include +#endif + +#ifndef O_BINARY + #define O_BINARY 0 +#endif // initialize the content with text int CMimeBody::SetText(const char* pbText, int nLength/*=0*/)