- minor fixes for Windows build integrated into HASQ

This commit is contained in:
2018-06-06 17:10:24 +03:00
parent 58483a0395
commit 5fb8f87b11
12 changed files with 33 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ set (CMAKE_CXX_STANDARD_REQUIRED ON)
file(GLOB MEDIA_LIB_SOURCES "*.cpp" "*.h")
# SRTP requires this
add_definitions(-DHAVE_STDINT_H -DHAVE_UINT64_T -DHAVE_NETINET_IN_H)
add_definitions(-DHAVE_STDINT_H -DHAVE_UINT64_T)
if(CMAKE_SYSTEM MATCHES "Linux*")
add_definitions(-DHAVE_NETINET_IN_H)

View File

@@ -1,8 +1,10 @@
/* Copyright(C) 2007-2017 VoIPobjects (voipobjects.com)
/* Copyright(C) 2007-2018 VoIPobjects (voipobjects.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#define NOMINMAX
#include "../config.h"
#include "MT_AudioCodec.h"
#include "MT_CodecList.h"
@@ -23,6 +25,7 @@
#include <assert.h>
#include <memory.h>
#include <string.h>
#include <algorithm>
#define LOG_SUBSYSTEM "Codec"
@@ -1430,4 +1433,4 @@ PCodec GsmHrCodec::GsmHrFactory::create()
{
return PCodec(new GsmHrCodec());
}
#endif
#endif

View File

@@ -3,6 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#define NOMINMAX
#include "../config.h"
#include "MT_AudioReceiver.h"
@@ -16,6 +17,8 @@
# include "MT_AmrCodec.h"
#endif
#include <algorithm>
#define LOG_SUBSYSTEM "AudioReceiver"
//#define DUMP_DECODED

View File

@@ -1,3 +1,5 @@
#define NOMINMAX
//#include "config.h"
#include "MT_SevanaMos.h"
@@ -19,6 +21,7 @@ using namespace boost::filesystem;
#include <streambuf>
#include <iostream>
#include <atomic>
#include <algorithm>
#if defined(PVQA_SERVER)
extern std::string IntervalCacheDir;