Skip to content

Commit

Permalink
- Fixed compilation with MinGW.
Browse files Browse the repository at this point in the history
  • Loading branch information
drfrag666 authored and coelckers committed Jul 15, 2019
1 parent f25e5c7 commit 416f5d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Expand Up @@ -388,6 +388,7 @@ if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
if( WIN32 )
set( CMAKE_CXX_FLAGS "-Wno-unknown-pragmas -Wno-comment -Wno-format ${CMAKE_CXX_FLAGS}" )
set( CMAKE_CXX_FLAGS "-D_UNICODE -DUNICODE ${CMAKE_CXX_FLAGS}" )
set( CMAKE_CXX_FLAGS "-D_WIN32_WINNT=0x0600 ${CMAKE_CXX_FLAGS}" )
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -municode" )
endif()

Expand Down
1 change: 1 addition & 0 deletions src/scripting/vm/jit_runtime.cpp
@@ -1,4 +1,5 @@

#include <memory>
#include "jit.h"
#include "jitintern.h"

Expand Down
3 changes: 2 additions & 1 deletion src/win32/win32vulkanvideo.cpp
@@ -1,5 +1,6 @@

#include <assert.h>
#include <algorithm>

#ifdef _WIN32
#define VK_USE_PLATFORM_WIN32_KHR
Expand Down Expand Up @@ -49,7 +50,7 @@ bool I_GetVulkanPlatformExtensions(unsigned int *count, const char **names)
else
{
const bool result = *count >= extensionCount;
*count = min(*count, extensionCount);
*count = std::min<unsigned int>(*count, extensionCount);

for (unsigned int i = 0; i < *count; ++i)
{
Expand Down

0 comments on commit 416f5d0

Please sign in to comment.