From 5535b363955a0af133b05c72407e0f3743425a2a Mon Sep 17 00:00:00 2001 From: Jyrki Vesterinen Date: Thu, 16 Nov 2017 19:31:03 +0200 Subject: [PATCH] Fix build with TDM-GCC @newfrenchy83 said that the build is failing: https://github.com/wesnoth/wesnoth/commit/37225d24eaa52183f897e223dc3847bf89c89282#commitcomment-25629052 It looks like TDM-GCC uses Windows XP development headers, unfortunately. However, the problem is easy to work around by simply #defining the missing value ourselves. We should consider dropping TDM-GCC support after the 1.14 release, though. --- src/filesystem_boost.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/filesystem_boost.cpp b/src/filesystem_boost.cpp index 99d058012b47..c2acd1769792 100644 --- a/src/filesystem_boost.cpp +++ b/src/filesystem_boost.cpp @@ -38,6 +38,10 @@ using boost::uintmax_t; #include #include #include + +// Work around TDM-GCC not #defining this according to @newfrenchy83. +#define VOLUME_NAME_NONE 0x4 + #endif /* !_WIN32 */ #include "config.hpp"