changeset 205:6e6fb0955095

XRogue: fix some header includes.
author John "Elwin" Edwards
date Thu, 13 Aug 2015 14:57:26 -0400
parents 4b1999ac91cf
children a3d90e31a001
files xrogue/save.c xrogue/state.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/xrogue/save.c	Thu Aug 13 07:47:01 2015 -0400
+++ b/xrogue/save.c	Thu Aug 13 14:57:26 2015 -0400
@@ -19,6 +19,7 @@
 #include <curses.h>
 #include <ctype.h>
 #include <string.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <signal.h>
 #include <fcntl.h>
--- a/xrogue/state.c	Thu Aug 13 07:47:01 2015 -0400
+++ b/xrogue/state.c	Thu Aug 13 14:57:26 2015 -0400
@@ -55,7 +55,6 @@
 #if defined(_WIN32)
 #include <Windows.h>
 #include <Lmcons.h>
-#include <process.h>
 #include <shlobj.h>
 #include <Shlwapi.h>
 #undef VOID
@@ -82,6 +81,9 @@
 #include "rogue.h"
 #include "mach_dep.h"
 
+#if defined(_WIN32)
+#include <process.h>
+#endif
 
 #define READSTAT ((format_error == 0) && (read_error == 0))
 #define WRITESTAT (write_error == 0)