[totem-pl-parser] remove the unneeded unistd.h and fix compatibility for msvc
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] remove the unneeded unistd.h and fix compatibility for msvc
- Date: Tue, 20 Apr 2010 09:21:51 +0000 (UTC)
commit 0e03a4fc36870e2851fd63d03d28e0d7d86fd4d8
Author: Shixin Zeng <zeng shixin gmail com>
Date: Mon Apr 19 17:27:21 2010 -0500
remove the unneeded unistd.h and fix compatibility for msvc
https://bugzilla.gnome.org/show_bug.cgi?id=575373
plparse/xmlparser.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plparse/xmlparser.c b/plparse/xmlparser.c
index 7b82615..40cf28f 100644
--- a/plparse/xmlparser.c
+++ b/plparse/xmlparser.c
@@ -26,14 +26,17 @@
#ifdef XINE_COMPILE
# 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
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]