comparison arogue7/mdport.c @ 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 600873555ec0
children e69128d2e4c5
comparison
equal deleted inserted replaced
200:1cd604c827a3 201:6fb21004a981
30 */ 30 */
31 31
32 #if defined(_WIN32) 32 #if defined(_WIN32)
33 #include <Windows.h> 33 #include <Windows.h>
34 #include <Lmcons.h> 34 #include <Lmcons.h>
35 #include <process.h>
36 #include <shlobj.h> 35 #include <shlobj.h>
37 #include <Shlwapi.h> 36 #include <Shlwapi.h>
38 #include <sys/types.h> 37 #include <sys/types.h>
39 #undef MOUSE_MOVED 38 #undef MOUSE_MOVED
40 #elif defined(__DJGPP__) 39 #elif defined(__DJGPP__)
46 #endif 45 #endif
47 46
48 #include <stdlib.h> 47 #include <stdlib.h>
49 48
50 #if defined(_WIN32) && !defined(__MINGW32__) 49 #if defined(_WIN32) && !defined(__MINGW32__)
51 #define PATH_MAX _PATH_MAX 50 #define PATH_MAX _MAX_PATH
52 #endif 51 #endif
53 52
54 #include <curses.h> 53 #include <curses.h>
55 54
56 #if defined(__INTERIX) || defined(__MSYS__) 55 #if defined(__INTERIX) || defined(__MSYS__)
57 #include <term.h> 56 #include <term.h>
58 #else 57 #else
59 #ifdef NCURSES_VERSION 58 #ifdef NCURSES_VERSION
60 #include <ncurses/term.h> 59 #include <ncurses/term.h>
61 #endif 60 #endif
61 #endif
62
63 #if defined(_WIN32)
64 #include <process.h>
62 #endif 65 #endif
63 66
64 #include <stdio.h> 67 #include <stdio.h>
65 #include <string.h> 68 #include <string.h>
66 #include <fcntl.h> 69 #include <fcntl.h>