diff options
author | Shixin Zeng <zeng.shixin@gmail.com> | 2010-04-20 10:19:37 +0100 |
---|---|---|
committer | Shixin Zeng <zeng.shixin@gmail.com> | 2010-04-20 10:19:37 +0100 |
commit | 45183af9feca481f03d2c2df811f39799e212df3 (patch) | |
tree | 42a4d460bca1b79ed574604ab03c0ec4b7460b7a | |
parent | 0c0dacd8b10892c2ed3b7aa6f3be617d3cec4911 (diff) | |
download | xine-lib-45183af9feca481f03d2c2df811f39799e212df3.tar.gz xine-lib-45183af9feca481f03d2c2df811f39799e212df3.tar.bz2 |
remove the unneeded unistd.h and fix compatibility for msvc
-rw-r--r-- | src/xine-utils/xmlparser.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xine-utils/xmlparser.c b/src/xine-utils/xmlparser.c index 6e29ed421..e32d38460 100644 --- a/src/xine-utils/xmlparser.c +++ b/src/xine-utils/xmlparser.c @@ -22,14 +22,17 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif - -#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <ctype.h> +#ifdef _MSC_VER +#define snprintf sprintf_s +#define strcasecmp stricmp +#endif + #define LOG_MODULE "xmlparser" #define LOG_VERBOSE /* |