version 0.1.1
[fms.git] / src / nntp / mime / Mime.cpp
index e79d059..fcadcd5 100644 (file)
 #include <stdlib.h>\r
 #include <time.h>\r
 \r
+#ifndef _WIN32\r
+       #define stricmp strcasecmp\r
+       #define strnicmp strncasecmp\r
+       #define memicmp memcmp\r
+#endif\r
+\r
 #ifdef _DEBUG\r
 #undef THIS_FILE\r
 static char THIS_FILE[]=__FILE__;\r
@@ -464,7 +470,16 @@ list<CMimeField>::iterator CMimeHeader::FindField(const char* pszFieldName)
 #include <fcntl.h>\r
 #include <sys/types.h>\r
 #include <sys/stat.h>\r
-#include <io.h>\r
+\r
+#ifdef _WIN32\r
+       #include <io.h>\r
+#else\r
+       #include <sys/io.h>\r
+#endif\r
+\r
+#ifndef O_BINARY\r
+       #define O_BINARY 0\r
+#endif\r
 \r
 // initialize the content with text\r
 int CMimeBody::SetText(const char* pbText, int nLength/*=0*/)\r