build: fix missing windows includes

This commit is contained in:
Danny Robson 2016-11-17 18:32:08 +11:00
parent d24c979c6b
commit 31e9270e6b
2 changed files with 25 additions and 1 deletions

View File

@ -1,10 +1,32 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Copyright 2010-2016 Danny Robson <danny@nerdcruft.net>
*/
#include "./exe.hpp"
#include "except.hpp"
#include <experimental/filesystem>
#include <vector>
#include <windows.h>
///////////////////////////////////////////////////////////////////////////////
std::experimental::filesystem::path
util::image_path (void) {
util::image_path (void)
{
std::vector<char> resolved (256);
retry:

2
io.hpp
View File

@ -23,6 +23,8 @@
#include <cstdio>
#include <cstdint>
#include <experimental/filesystem>
#include <vector>
#include <streambuf>
#ifdef PLATFORM_WIN32
#include <windows.h>