Compile on Windows

This commit is contained in:
loki
2020-01-01 18:47:34 +01:00
parent b5fe713848
commit 1129aa6dfd
9 changed files with 57 additions and 61 deletions

View File

@@ -2,6 +2,8 @@
// Created by loki on 5/30/19.
//
#include "process.h"
#include <thread>
#include <filesystem>
#include <iostream>
@@ -9,7 +11,6 @@
#include "nvhttp.h"
#include "stream.h"
#include "config.h"
#include "process.h"
#include "thread_pool.h"
extern "C" {

View File

@@ -2,6 +2,8 @@
// Created by loki on 6/3/19.
//
#include "process.h"
#include <iostream>
#include <filesystem>
@@ -21,7 +23,6 @@
#include "stream.h"
#include "nvhttp.h"
#include "platform/common.h"
#include "process.h"
#include "network.h"

View File

@@ -2,6 +2,8 @@
// Created by loki on 12/14/19.
//
#include "process.h"
#include <vector>
#include <string>
#include <iostream>
@@ -9,7 +11,6 @@
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include "process.h"
#include "config.h"
#include "utility.h"
#include "platform/common.h"
@@ -295,4 +296,4 @@ void refresh(const std::string &file_name) {
proc = std::move(*proc_opt);
}
}
}
}

View File

@@ -5,6 +5,10 @@
#ifndef SUNSHINE_PROCESS_H
#define SUNSHINE_PROCESS_H
#ifndef __kernel_entry
#define __kernel_entry
#endif
#include <unordered_map>
#include <optional>

View File

@@ -1,6 +1,9 @@
//
// Created by loki on 6/5/19.
//
#include "process.h"
#include <boost/version.hpp>
#if ((BOOST_VERSION / 1000) >= 107)
#define EXECUTOR(x) (x->get_executor())
@@ -32,7 +35,6 @@ extern "C" {
#include "thread_safe.h"
#include "crypto.h"
#include "input.h"
#include "process.h"
#define IDX_START_A 0
#define IDX_REQUEST_IDR_FRAME 0

View File

@@ -568,7 +568,8 @@ struct endianness {
defined(__ARMEB__) || \
defined(__THUMBEB__) || \
defined(__AARCH64EB__) || \
defined(_MIBSEB) || defined(__MIBSEB) || defined(__MIBSEB__)
defined(_MIBSEB) || defined(__MIBSEB) || defined(__MIBSEB__) || \
defined(WIN32)
// It's a big-endian target architecture
little = false,
#elif defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN || \