Advanced Rogue 5: rearrange some of mdport.c.
process.h is now included in the proper place for compiling with MSVC. md_sleep() has been removed. If it were used anywhere, it could have been fixed by replacing _sleep() with Sleep().
This commit is contained in:
parent
47df21eb66
commit
4381177d66
1 changed files with 4 additions and 11 deletions
|
|
@ -36,7 +36,6 @@
|
|||
#if defined(_WIN32)
|
||||
#include <Windows.h>
|
||||
#include <Lmcons.h>
|
||||
#include <process.h>
|
||||
#include <shlobj.h>
|
||||
#include <sys/types.h>
|
||||
#undef MOUSE_MOVED
|
||||
|
|
@ -69,6 +68,10 @@
|
|||
#include <ncurses/term.h>
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <process.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
|
|
@ -331,16 +334,6 @@ md_gethomedir()
|
|||
return(homedir);
|
||||
}
|
||||
|
||||
int
|
||||
md_sleep(int s)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
_sleep(s);
|
||||
#else
|
||||
sleep(s);
|
||||
#endif
|
||||
}
|
||||
|
||||
char *
|
||||
md_getshell()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue