MSVC: Fix include, fix GNU compiler flag

This commit is contained in:
Lukas W
2017-11-22 17:57:42 +01:00
parent 8f3ab4b1b0
commit 1531fb9e1a
2 changed files with 4 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
INCLUDE(BuildPlugin)
# Avoid unused warnings for mididata.h
IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-variable")
ENDIF()
INCLUDE_DIRECTORIES(adplug/src)

View File

@@ -26,13 +26,12 @@
#include <stdio.h>
#include "lmmsconfig.h"
#ifndef LMMS_BUILD_WIN32
#include <strings.h>
#endif
#include "lmmsconfig.h"
static const size_t SIZEOF_SET = sizeof( int ) * 8;