summaryrefslogtreecommitdiff
path: root/streamhtmlparser/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'streamhtmlparser/port.h')
-rwxr-xr-xstreamhtmlparser/port.h20
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