[libdvdcss-devel] msvc: Map some POSIX function names to their ISO C++ counterparts
Diego Biurrun
git at videolan.org
Thu Oct 30 17:16:34 CET 2014
libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Tue Oct 28 17:59:24 2014 +0100| [fe619aa0c9502670af84815b99a57b0449b9c184] | committer: Diego Biurrun
msvc: Map some POSIX function names to their ISO C++ counterparts
This silences related complaints from MSVC about those function names.
> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=fe619aa0c9502670af84815b99a57b0449b9c184
---
src/common.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/common.h b/src/common.h
index 44154b3..d2cd4d0 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
#endif
More information about the libdvdcss-devel
mailing list