shithub: libdvdcss

Download patch

ref: fe619aa0c9502670af84815b99a57b0449b9c184
parent: 845744d39c7f95df3b5b8343ced219e8d5d6590f
author: Diego Biurrun <[email protected]>
date: Tue Oct 28 13:59:24 EDT 2014

msvc: Map some POSIX function names to their ISO C++ counterparts

This silences related complaints from MSVC about those function names.

--- a/src/common.h
+++ b/src/common.h
@@ -74,6 +74,11 @@
 #       endif
 #       define stat _stati64
 #       define snprintf _snprintf
+#       define strdup _strdup
+#       define open _open
+#       define close _close
+#       define read _read
+#       define write _write
 #   endif
 
 #endif