Added windows compatibility for PATH_MAX and NAME_MAX
This commit is contained in:
6
src/compat.h
Normal file
6
src/compat.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
#define PATH_MAX 260
|
||||
#define NAME_MAX 260
|
||||
#endif
|
||||
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <limits.h>
|
||||
#include "inputbuffer.h"
|
||||
#include "compat.h"
|
||||
|
||||
typedef struct {
|
||||
int buffer[16 * 16];
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user