test: enable binary mode on stdin/stdout
Declaring the global variable _CRT_fmode is a documented hack. What an ugly platform!
This commit is contained in:
parent
eda46bc07f
commit
9aeed06964
@ -29,6 +29,7 @@
|
||||
#include "pcm_convert.h"
|
||||
#include "conf.h"
|
||||
#include "fifo_buffer.h"
|
||||
#include "stdbin.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "audio_format.h"
|
||||
#include "pcm_volume.h"
|
||||
#include "idle.h"
|
||||
#include "stdbin.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "audio_format.h"
|
||||
#include "audio_parser.h"
|
||||
#include "conf.h"
|
||||
#include "stdbin.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "idle.h"
|
||||
#include "mixer_control.h"
|
||||
#include "playlist.h"
|
||||
#include "stdbin.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "tag_pool.h"
|
||||
#include "tag_save.h"
|
||||
#include "conf.h"
|
||||
#include "stdbin.h"
|
||||
|
||||
#ifdef ENABLE_ARCHIVE
|
||||
#include "archive_list.h"
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "AudioCompress/compress.h"
|
||||
#include "audio_parser.h"
|
||||
#include "audio_format.h"
|
||||
#include "stdbin.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "event_pipe.h"
|
||||
#include "idle.h"
|
||||
#include "playlist.h"
|
||||
#include "stdbin.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "pcm_volume.h"
|
||||
#include "audio_parser.h"
|
||||
#include "audio_format.h"
|
||||
#include "stdbin.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
29
test/stdbin.h
Normal file
29
test/stdbin.h
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2010 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPD_STDBIN_H
|
||||
#define MPD_STDBIN_H
|
||||
|
||||
#ifdef WIN32
|
||||
#include <fcntl.h>
|
||||
/** set binary mode on stdin/stdout */
|
||||
int _CRT_fmode = _O_BINARY;
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user