Removed some unnecessary dependencies from CMakeLists and fixed compile on older versions of clang.

This commit is contained in:
casey langen 2017-01-01 13:59:22 -08:00
parent 83fc208daf
commit f57abafb42
3 changed files with 3 additions and 7 deletions

View File

@ -4,7 +4,6 @@
cmake_minimum_required(VERSION 3.0)
project(musikbox)
set (musikbox_VERSION_MAJOR 0)
set (musikbox_VERSION_MINOR 1)
@ -25,12 +24,8 @@ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2")
set (BOOST_LIBS
system
date_time
chrono
filesystem
iostreams
thread
regex
)
find_package(Boost 1.55.0 REQUIRED ${BOOST_LIBS})

View File

@ -34,7 +34,7 @@
#include "stdafx.h"
#include "M4aDecoder.h"
#include <stdlib.h>
#include <cstring>
#include <string>
using musik::core::sdk::IDataStream;

View File

@ -35,6 +35,7 @@
#include "NomadDecoder.h"
#include <vector>
#include <cstring>
#include <stdio.h>
using namespace musik::core::sdk;
@ -169,4 +170,4 @@ size_t NomadDecoder::GetId3v2HeaderLength(musik::core::sdk::IDataStream *stream)
((parts[2] & 0x7F) << 7) |
((parts[1] & 0x7F) << 14) |
((parts[0] & 0x7F) << 21);
}
}