diff --git a/src/compat.h b/src/compat.h new file mode 100644 index 0000000..26ee231 --- /dev/null +++ b/src/compat.h @@ -0,0 +1,6 @@ +#pragma once + +#ifdef _WIN32 + #define PATH_MAX 260 + #define NAME_MAX 260 +#endif diff --git a/src/data.h b/src/data.h index e7ab2f4..c77722c 100644 --- a/src/data.h +++ b/src/data.h @@ -1,6 +1,7 @@ #pragma once #include #include "inputbuffer.h" +#include "compat.h" typedef struct { int buffer[16 * 16]; diff --git a/src/terrain.h b/src/terrain.h index 85bf5d7..d722cf9 100644 --- a/src/terrain.h +++ b/src/terrain.h @@ -7,6 +7,7 @@ #include "coords.h" #include "utility.h" #include "player.h" +#include "compat.h" #define CHUNKARR_DIAM 3 #define CHUNKARR_RAD (CHUNKARR_DIAM - 1) / 2