limits.h fix for other platforms

This commit is contained in:
Marco Cawthorne 2023-05-07 08:35:49 -07:00
parent 2063e3e0cd
commit ddf5069a2a
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 6 additions and 1 deletions

View File

@ -54,10 +54,15 @@
# include <windows.h>
#else
# include <unistd.h>
# include <linux/limits.h>
# define MAX_PATH PATH_MAX
# define UNUSED __attribute__((__unused__))
#ifdef __linux__
#include <linux/limits.h>
#else
#include <limits.h>
#endif
# define FOREGROUND_RED 0x0001
# define FOREGROUND_GREEN 0x0002
# define FOREGROUND_BLUE 0x0004