[libdvdcss-devel] [PATCH 30/47] msvc: Map some POSIX function names to their ISO C++ counterparts
Diego Biurrun
diego at biurrun.de
Wed Oct 29 21:33:30 CET 2014
This silences related complaints from MSVC about those function names.
---
src/common.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/common.h b/src/common.h
index 983521e..bfa6c18 100644
--- a/src/common.h
+++ b/src/common.h
@@ -74,6 +74,11 @@ typedef __int64 off_t;
# endif
# define stat _stati64
# define snprintf _snprintf
+# define strdup _strdup
+# define open _open
+# define close _close
+# define read _read
+# define write _write
# endif /* defined( _MSC_VER ) */
#endif /* defined( WIN32 ) */
--
1.9.1
More information about the libdvdcss-devel
mailing list