Fix cross-compilation with mingw/linux (#758)

This commit is contained in:
Orgad Shaneh 2019-01-28 12:28:54 +02:00 committed by Dominic Hamon
parent 40fce80e0d
commit 5f2a107b17
5 changed files with 9 additions and 9 deletions

View File

@ -33,7 +33,7 @@ endif()
# We need extra libraries on Windows
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
target_link_libraries(benchmark Shlwapi)
target_link_libraries(benchmark shlwapi)
endif()
set(include_install_dir "include")

View File

@ -25,7 +25,7 @@
#include "internal_macros.h"
#ifdef BENCHMARK_OS_WINDOWS
#include <Windows.h>
#include <windows.h>
#include <io.h>
#else
#include <unistd.h>

View File

@ -21,7 +21,7 @@
#include "internal_macros.h"
#ifdef BENCHMARK_OS_WINDOWS
#include <Windows.h>
#include <windows.h>
#endif
namespace benchmark {

View File

@ -15,9 +15,9 @@
#include "internal_macros.h"
#ifdef BENCHMARK_OS_WINDOWS
#include <Shlwapi.h>
#include <VersionHelpers.h>
#include <Windows.h>
#include <shlwapi.h>
#include <versionhelpers.h>
#include <windows.h>
#else
#include <fcntl.h>
#include <sys/resource.h>

View File

@ -16,9 +16,9 @@
#include "internal_macros.h"
#ifdef BENCHMARK_OS_WINDOWS
#include <Shlwapi.h>
#include <VersionHelpers.h>
#include <Windows.h>
#include <shlwapi.h>
#include <versionhelpers.h>
#include <windows.h>
#else
#include <fcntl.h>
#include <sys/resource.h>