diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-08-12 10:40:23 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-08-12 10:40:23 +0200 |
commit | fe4e07657381e7db947630981a1d34410e4753e3 (patch) | |
tree | 7daf065a73ab29fd954f81e40dfde9f6e66a022a /streamhtmlparser/port.h | |
parent | b2f35389b68fb1e58ea13dc273fdebaf534a325c (diff) | |
download | crawler-fe4e07657381e7db947630981a1d34410e4753e3.tar.gz crawler-fe4e07657381e7db947630981a1d34410e4753e3.tar.bz2 |
streamhtmlparser works on Windows
Diffstat (limited to 'streamhtmlparser/port.h')
-rwxr-xr-x | streamhtmlparser/port.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/streamhtmlparser/port.h b/streamhtmlparser/port.h new file mode 100755 index 0000000..e826959 --- /dev/null +++ b/streamhtmlparser/port.h @@ -0,0 +1,20 @@ +#ifndef __INLINE_H
+#define __INLINE_H
+
+#ifdef _MSC_VER
+#define INLINE __inline
+#else
+#define INLINE inline
+#endif
+
+#ifndef _WIN32
+#include <strings.h>
+#else
+#define WIN32_MEAN_AND_LEAN
+#include <windows.h>
+#define strcasecmp stricmp
+#define strncasecmp strnicmp
+#define snprintf _snprintf
+#endif
+
+#endif
|