Fixup previous commit
Now, it looks like this breaks Cygwin again. Have to figure out what's going on.
This commit is contained in:
parent
bc76449f51
commit
7cba8a673b
@ -413,7 +413,7 @@ font_options_t::get_font (void) const
|
|||||||
/* read it */
|
/* read it */
|
||||||
GString *gs = g_string_new (NULL);
|
GString *gs = g_string_new (NULL);
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
#ifdef HAVE__SETMODE
|
#ifdef HAVE_SETMODE
|
||||||
setmode (fileno (stdin), _O_BINARY);
|
setmode (fileno (stdin), _O_BINARY);
|
||||||
#endif
|
#endif
|
||||||
while (!feof (stdin)) {
|
while (!feof (stdin)) {
|
||||||
@ -557,7 +557,7 @@ output_options_t::get_file_handle (void)
|
|||||||
if (output_file)
|
if (output_file)
|
||||||
fp = fopen (output_file, "wb");
|
fp = fopen (output_file, "wb");
|
||||||
else {
|
else {
|
||||||
#ifdef HAVE__SETMODE
|
#ifdef HAVE_SETMODE
|
||||||
_setmode (fileno (stdout), _O_BINARY);
|
_setmode (fileno (stdout), _O_BINARY);
|
||||||
#endif
|
#endif
|
||||||
fp = stdout;
|
fp = stdout;
|
||||||
|
Loading…
Reference in New Issue
Block a user