Commit e6294283 authored by rswindell's avatar rswindell
Browse files

Added MAX_PATH definition.

parent c1b98ce8
......@@ -49,6 +49,7 @@
#if !defined(__unix__)
#include <io.h>
#include <malloc.h> /* malloc prototype */
#include <sys/param.h> /* PATH_MAX */
#endif
#if (defined(__unix__) || defined(_WIN32)) && !defined(__FLAT__)
#define __FLAT__
......@@ -103,6 +104,18 @@
#define FREE free
#endif
#if !defined(MAX_PATH) /* maximum path length */
#if defined MAXPATHLEN
#define MAX_PATH MAXPATHLEN /* clib.h */
#elif defined PATH_MAX
#define MAX_PATH PATH_MAX
#elif defined _MAX_PATH
#define MAX_PATH _MAX_PATH
#else
#define MAX_PATH 260
#endif
#endif
#ifdef __DPMI32__
#define INT_86(i,j,k) int386(i,j,k)
#else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment