changeset 201:6fb21004a981

Fix some preprocessor directives. Include process.h in the right place, and use the correct definition of PATH_MAX, when compiling on Windows.
author John "Elwin" Edwards
date Wed, 12 Aug 2015 16:56:19 -0400
parents 1cd604c827a3
children e69128d2e4c5
files arogue7/mdport.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/arogue7/mdport.c	Wed Aug 12 15:42:02 2015 -0400
+++ b/arogue7/mdport.c	Wed Aug 12 16:56:19 2015 -0400
@@ -32,7 +32,6 @@
 #if defined(_WIN32)
 #include <Windows.h>
 #include <Lmcons.h>
-#include <process.h>
 #include <shlobj.h>
 #include <Shlwapi.h>
 #include <sys/types.h>
@@ -48,7 +47,7 @@
 #include <stdlib.h>
 
 #if defined(_WIN32) && !defined(__MINGW32__)
-#define PATH_MAX _PATH_MAX
+#define PATH_MAX _MAX_PATH
 #endif
 
 #include <curses.h>
@@ -61,6 +60,10 @@
 #endif
 #endif
 
+#if defined(_WIN32)
+#include <process.h>
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <fcntl.h>