[libdvdcss-devel] msvc: Drop redefinition of unused function stat()

Diego Biurrun git at videolan.org
Fri Nov 14 16:45:57 CET 2014


libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Nov 14 15:44:05 2014 +0100| [bced1ab455de4baebf6d6504e4ca08c21335fe83] | committer: Diego Biurrun

msvc: Drop redefinition of unused function stat()

Also drop some unnecessary sys/stat.h #includes.

> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=bced1ab455de4baebf6d6504e4ca08c21335fe83
---

 src/common.h      |    1 -
 src/css.c         |    1 -
 test/dvd_region.c |    1 -
 3 files changed, 3 deletions(-)

diff --git a/src/common.h b/src/common.h
index 71ef811..d00a6f5 100644
--- a/src/common.h
+++ b/src/common.h
@@ -52,7 +52,6 @@ typedef __int64 off_t;
 #           define off_t __int64
 #       endif
 #       define ssize_t SSIZE_T
-#       define stat _stati64
 #       define snprintf _snprintf
 #       define strdup _strdup
 #       define open _open
diff --git a/src/css.c b/src/css.c
index ca9e0a4..0acf710 100644
--- a/src/css.c
+++ b/src/css.c
@@ -39,7 +39,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 #ifdef HAVE_SYS_PARAM_H
 #   include <sys/param.h>
 #endif
diff --git a/test/dvd_region.c b/test/dvd_region.c
index 4a2806f..eb7b6d1 100644
--- a/test/dvd_region.c
+++ b/test/dvd_region.c
@@ -12,7 +12,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <fcntl.h>
 #include <getopt.h>
 



More information about the libdvdcss-devel mailing list