From 9c93a66db72f17760b08c1ca58774ba173f530f9 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Wed, 12 Aug 2015 16:56:19 -0400 Subject: [PATCH] Fix some preprocessor directives. Include process.h in the right place, and use the correct definition of PATH_MAX, when compiling on Windows. --- arogue7/mdport.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arogue7/mdport.c b/arogue7/mdport.c index 6508cae..6b2bcb2 100644 --- a/arogue7/mdport.c +++ b/arogue7/mdport.c @@ -32,7 +32,6 @@ #if defined(_WIN32) #include #include -#include #include #include #include @@ -48,7 +47,7 @@ #include #if defined(_WIN32) && !defined(__MINGW32__) -#define PATH_MAX _PATH_MAX +#define PATH_MAX _MAX_PATH #endif #include @@ -61,6 +60,10 @@ #endif #endif +#if defined(_WIN32) +#include +#endif + #include #include #include