diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5575541..110c66c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,9 @@ project(ww1game)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
+include_directories("/usr/local/include")
+link_directories("/usr/local/lib")
+
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
diff --git a/src/main.hpp b/src/main.hpp
index 3873680..48b9555 100644
--- a/src/main.hpp
+++ b/src/main.hpp
@@ -29,6 +29,7 @@ along with this program. If not, see .
#include
#include
#include
+#include
// == Macros
#define ASSET_PATH "../assets"
diff --git a/src/renderer.cpp b/src/renderer.cpp
index 44b31dc..c47ed11 100644
--- a/src/renderer.cpp
+++ b/src/renderer.cpp
@@ -99,7 +99,7 @@ namespace Assets {
bool run = true;
float fps = 0.0f;
-std::chrono::_V2::system_clock::time_point time_prev = std::chrono::high_resolution_clock::now();
+auto time_prev = std::chrono::high_resolution_clock::now();
long frameCounter = 0;
int anim_div = 0;
bool inMenu = true;
@@ -380,7 +380,7 @@ void renderLoop() {
SDL_Event event;
while (run) {
//Uint32 time_now = SDL_GetTicks();
- std::chrono::_V2::system_clock::time_point time_now = std::chrono::high_resolution_clock::now();
+ auto time_now = std::chrono::high_resolution_clock::now();
float deltaTime = (time_now - time_prev).count() / 1000000000.0f;
fps = (deltaTime > 0.0f) ? 1.0f / deltaTime : 1.0f;
anim_div = std::roundl(fps / (float)ANIM_FPS);