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:
parent
295a180ea1
commit
9c93a66db7
1 changed files with 5 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue