diff options
| author | Zuhaitz <zuhaitz.zechhub@gmail.com> | 2026-01-25 23:05:05 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-25 23:05:05 +0000 |
| commit | 18b0932249b0df8ddea159ba187cb9c3587197da (patch) | |
| tree | 0bef00626236e4f9b0893ee541e3ec75c6b3f60e | |
| parent | dc69e7a19e86373ee117d56b3747ff56d1631e96 (diff) | |
| parent | 1da2411243f9c358c29e0ab3de598fd57ba955d1 (diff) | |
Merge pull request #124 from greenpine82/MinGW
Add macro for MinGW compatibility
| -rw-r--r-- | src/zprep.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zprep.h b/src/zprep.h index 23db911..8f4684f 100644 --- a/src/zprep.h +++ b/src/zprep.h @@ -20,6 +20,14 @@ #endif #endif +#ifdef _WIN32 +#include <sys/types.h> +#ifndef PATH_MAX +#define PATH_MAX 260 +#endif +#define realpath(N, R) _fullpath((R), (N), PATH_MAX) +#endif + // **ZEN VERSION** #ifndef ZEN_VERSION #define ZEN_VERSION "0.1.0" |
