Mercurial > hg > early-roguelike
diff srogue/save.c @ 186:85bd398cb96d
srogue: another unistd.h which should not be included on Windows.
author | John "Elwin" Edwards |
---|---|
date | Mon, 03 Aug 2015 06:30:09 -0400 |
parents | 1863409c44cf |
children | 233be801aa81 |
line wrap: on
line diff
--- a/srogue/save.c Sun Aug 02 15:25:24 2015 -0400 +++ b/srogue/save.c Mon Aug 03 06:30:09 2015 -0400 @@ -14,15 +14,18 @@ * See the file LICENSE.TXT for full copyright and licensing information. */ +#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <unistd.h> #include <ctype.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <signal.h> #include <errno.h> +#if !defined(_WIN32) +#include <unistd.h> +#endif #include "rogue.h" #include "rogue.ext"