More echoprint compile fixes for mingw

This commit is contained in:
John Maguire 2011-06-29 11:51:56 +00:00
parent 964dced58c
commit bfa23cbd10
1 changed files with 11 additions and 7 deletions

View File

@ -10,14 +10,20 @@
#include <iostream>
#include <string>
#include <vector>
#ifndef _WIN32
#include <unistd.h>
#define POPEN_MODE "r"
#else
#include "win_unistd.h"
#ifdef _WIN32
#include <winsock.h>
#define POPEN_MODE "rb"
#else
#define POPEN_MODE "r"
#endif
#if defined(_WIN32) && !defined(__MINGW32__)
#include "win_unistd.h"
#else
#include <unistd.h>
#endif
#include <string.h>
#include "AudioStreamInput.h"
@ -128,5 +134,3 @@ bool AudioStreamInput::ProcessFilePointer(FILE* pFile) {
perror("ProcessFilePointer error");
return success;
}