#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
#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