Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
x264
Commits
57985796
Commit
57985796
authored
May 24, 2008
by
Anton Mitrofanov
Committed by
Loren Merritt
Jun 03, 2008
Browse files
binmode stdin on mingw, not just msvc
parent
71a919d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/osdep.h
View file @
57985796
...
...
@@ -31,9 +31,12 @@
#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
...
...
x264.c
View file @
57985796
...
...
@@ -90,7 +90,7 @@ int main( int argc, char **argv )
pthread_win32_thread_attach_np
();
#endif
#ifdef _
MSC_VER
#ifdef _
WIN32
_setmode
(
_fileno
(
stdin
),
_O_BINARY
);
_setmode
(
_fileno
(
stdout
),
_O_BINARY
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment