projects
/
fms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.1.1
[fms.git]
/
src
/
nntp
/
mime
/
Mime.cpp
diff --git
a/src/nntp/mime/Mime.cpp
b/src/nntp/mime/Mime.cpp
index
e79d059
..
fcadcd5
100644
(file)
--- a/
src/nntp/mime/Mime.cpp
+++ b/
src/nntp/mime/Mime.cpp
@@
-13,6
+13,12
@@
#include <stdlib.h>
\r
#include <time.h>
\r
\r
#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
#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 <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
\r
// initialize the content with text
\r
int CMimeBody::SetText(const char* pbText, int nLength/*=0*/)
\r