From a836292b16b0887aa23b62eda2f4f2e97a22e228 Mon Sep 17 00:00:00 2001 From: tazza-d <63610994+tazza-d@users.noreply.github.com> Date: Mon, 13 Apr 2020 22:42:53 +0300 Subject: [PATCH 1/3] Made compilable for non-Windows targets --- main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 108448b..6320aab 100644 --- a/main.cpp +++ b/main.cpp @@ -3,8 +3,13 @@ #include #include #include +#include +#ifdef _WIN32 #include -#include +#else +#include +#define MAX_PATH PATH_MAX +#endif #include "tim.h" From 2618c8e8b00bdf4e131b0915831065d4335148d0 Mon Sep 17 00:00:00 2001 From: tazza-d <63610994+tazza-d@users.noreply.github.com> Date: Mon, 13 Apr 2020 22:44:39 +0300 Subject: [PATCH 2/3] Made compilable for non-Windows targets --- tim.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tim.h b/tim.h index 87dc20d..9f9b8f4 100644 --- a/tim.h +++ b/tim.h @@ -2,7 +2,9 @@ #define _TIM_H #include +#ifdef _WIN32 #include +#endif #include #define TIM_OUTPUT_CLUT4 0 From 7f2d42428bfa8c2b86334db0df56f330f4e9489c Mon Sep 17 00:00:00 2001 From: tazza-d <63610994+tazza-d@users.noreply.github.com> Date: Mon, 13 Apr 2020 22:58:22 +0300 Subject: [PATCH 3/3] Made compilable for non-Windows targets --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 6320aab..ff8e8a2 100644 --- a/main.cpp +++ b/main.cpp @@ -3,13 +3,13 @@ #include #include #include -#include #ifdef _WIN32 #include #else #include #define MAX_PATH PATH_MAX #endif +#include #include "tim.h"