summaryrefslogtreecommitdiff
path: root/src/snapshot.c
diff options
context:
space:
mode:
authortwinaphex2020-10-06 00:41:58 +0200
committertwinaphex2020-10-06 00:41:58 +0200
commit860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2 (patch)
tree4d6b29549d06f5cac6c05895f3ca2df0e2fe3edc /src/snapshot.c
parent21647005d1b2729a70fb41c36c1a7d2d19f0a24e (diff)
downloadsnes9x2002-860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2.tar.gz
snes9x2002-860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2.tar.bz2
snes9x2002-860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2.zip
Cleanups
Diffstat (limited to 'src/snapshot.c')
-rw-r--r--src/snapshot.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/snapshot.c b/src/snapshot.c
index a88a462..17c10e5 100644
--- a/src/snapshot.c
+++ b/src/snapshot.c
@@ -42,8 +42,14 @@
* Nintendo Co., Limited and its subsidiary companies.
*/
-#if defined(__unix) || defined(__linux) || defined(__sun) || defined(__DJGPP)
+#include <stdio.h>
+#ifdef _WIN32
+#include <direct.h>
+#else
#include <unistd.h>
+#endif
+
+#if defined(__unix) || defined(__linux) || defined(__sun) || defined(__DJGPP)
#include <sys/types.h>
#include <sys/stat.h>
#endif