build: Add support for unity builds

This commit is contained in:
WerWolv
2023-11-30 10:22:15 +01:00
parent 09904b77eb
commit e370fdb0fc
25 changed files with 77 additions and 79 deletions

View File

@@ -7,11 +7,6 @@
#include <string>
#include <vector>
#if defined(OS_WINDOWS)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
namespace hex::plugin::builtin {
class DiskProvider : public hex::prv::Provider {
@@ -67,7 +62,7 @@ namespace hex::plugin::builtin {
std::string m_friendlyName;
#if defined(OS_WINDOWS)
HANDLE m_diskHandle = INVALID_HANDLE_VALUE;
void *m_diskHandle = reinterpret_cast<void*>(-1);
#else
std::string m_pathBuffer;
int m_diskHandle = -1;

View File

@@ -3,9 +3,10 @@
#include <hex.hpp>
#include <hex/ui/view.hpp>
#include <hex/api/task_manager.hpp>
#include <hex/helpers/http_requests.hpp>
#include <hex/helpers/fs.hpp>
#include <hex/api/task_manager.hpp>
#include <future>
#include <string>