Discussion:
[libdvdcss-devel] [PATCH] msvc: Drop redefinition of stat()
Diego Biurrun
2014-11-14 14:48:07 UTC
Permalink
stat() is not used in libdvdcss.
---
src/common.h | 1 -
1 file changed, 1 deletion(-)

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
--
2.1.0
Jean-Baptiste Kempf
2014-11-14 14:53:54 UTC
Permalink
Post by Diego Biurrun
stat() is not used in libdvdcss.
Then why do we include stat.h ?
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
Diego Biurrun
2014-11-14 15:02:27 UTC
Permalink
Post by Jean-Baptiste Kempf
Post by Diego Biurrun
stat() is not used in libdvdcss.
Then why do we include stat.h ?
For fstat() and mkdir(). I'll update the patch to drop unnecessary #includes.

Diego
Jean-Baptiste Kempf
2014-11-14 15:03:29 UTC
Permalink
Post by Diego Biurrun
Post by Jean-Baptiste Kempf
Post by Diego Biurrun
stat() is not used in libdvdcss.
Then why do we include stat.h ?
For fstat() and mkdir(). I'll update the patch to drop unnecessary #includes.
fstat needs the stat64 define, for Windows.
But this codepath is not used on Windows.

With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
Loading...