From af51176852ebcde019bc3c6d59a80083ae49829e Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 6 Mar 2020 13:55:05 +0100 Subject: [PATCH] Fix Windows build. --- src/image/codec/gdiplus-image.cpp | 2 +- src/t/test-common.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/image/codec/gdiplus-image.cpp b/src/image/codec/gdiplus-image.cpp index 0d9862ef..02122248 100644 --- a/src/image/codec/gdiplus-image.cpp +++ b/src/image/codec/gdiplus-image.cpp @@ -61,7 +61,7 @@ ResourceCodecData* GdiPlusImageCodec::Load(std::string const &path) return nullptr; } - array pathlist = sys::get_path_list(path); + auto pathlist = sys::get_path_list(path); Gdiplus::Bitmap *bitmap = nullptr; for (auto const &fullpath : pathlist) { diff --git a/src/t/test-common.cpp b/src/t/test-common.cpp index b62e9a15..fa166830 100644 --- a/src/t/test-common.cpp +++ b/src/t/test-common.cpp @@ -14,6 +14,7 @@ # include "config.h" #endif +#include // this is required for SDL_main #include #include