Fix some preprocessor directives.

Include process.h in the right place, and use the correct definition of
PATH_MAX, when compiling on Windows.
This commit is contained in:
John "Elwin" Edwards 2015-08-12 16:56:19 -04:00
parent 295a180ea1
commit 9c93a66db7

View file

@ -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>