changeset 197:61d1c9ac9be7

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().
author John "Elwin" Edwards
date Tue, 11 Aug 2015 15:29:31 -0400
parents 80a590e67206
children 7795b0938921
files arogue5/mdport.c
diffstat 1 files changed, 4 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/arogue5/mdport.c	Tue Aug 11 15:15:09 2015 -0400
+++ b/arogue5/mdport.c	Tue Aug 11 15:29:31 2015 -0400
@@ -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 @@
     return(homedir);
 }
 
-int
-md_sleep(int s)
-{
-#ifdef _WIN32
-    _sleep(s);
-#else
-    sleep(s);
-#endif
-}
-
 char *
 md_getshell()
 {