git version control | 4 Jun 2008 00:53
Favicon

commit: binmode stdin on mingw, not just msvc (BugMaster )

x264 | branch: master | BugMaster <BugMaster <at> narod.ru> | Sat May 24 01:09:07 2008 -0600| [02a04f2d03e80be3f66bb76fd1bc775216b0d37c]

binmode stdin on mingw, not just msvc

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=02a04f2d03e80be3f66bb76fd1bc775216b0d37c
---

 common/osdep.h |    5 ++++-
 x264.c         |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/common/osdep.h b/common/osdep.h
index c7353e0..18c7c48 100644
--- a/common/osdep.h
+++ b/common/osdep.h
 <at>  <at>  -31,9 +31,12  <at>  <at> 
 #include <inttypes.h>
 #endif

-#ifdef _MSC_VER
+#ifdef _WIN32
 #include <io.h>    // _setmode()
 #include <fcntl.h> // _O_BINARY
+#endif
+
+#ifdef _MSC_VER
 #define inline __inline
 #define strcasecmp stricmp
 #define strncasecmp strnicmp
diff --git a/x264.c b/x264.c
(Continue reading)


Gmane