Skip to content

Commit b0f6385

Browse files
committed
fix build for windows
1 parent 82d8f7d commit b0f6385

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.0.0)
22
project(sandbox VERSION 0.1.0)
3-
set(CMAKE_CXX_STANDARD 20)
3+
set(CMAKE_CXX_STANDARD 23)
44
set(CMAKE_CXX_STANDARD_REQUIRED ON)
55

66
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)

Source/Library/Time.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include "Time.hpp"
2+
#include "DetectOs.hpp"
23
#include <chrono>
34
#include <cmath>
45
#include <tuple>
56

6-
#include "DetectOs.hpp"
77

88
#ifdef WINDOWS
99
#include <format>

Source/Library/h/DetectOs.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#ifdef _WIN32
24

35
#define WINDOWS

Source/main.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
#include <iostream>
2-
#include <unordered_set>
3-
4-
#include "MemoryManager.hpp"
52

63
int main(int, char **) { return 0; }

0 commit comments

Comments
 (0)