[libdvdcss-devel] [PATCH 30/47] msvc: Map some POSIX function names to their ISO C++ counterparts

Diego Biurrun <[email protected]>
Newsgroups gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel
Message-ID <[email protected]>
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

_______________________________________________
libdvdcss-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvdcss-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.