From 39b1c6dacd1297aa0bd2c086de02c27161cabec2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 13 Jan 2013 04:39:49 +0100 Subject: [PATCH] (RLaunch) Avoid unistd.h includes on MSVC --- tools/retrolaunch/cd_detect.h | 4 ++++ tools/retrolaunch/main.c | 4 ++++ tools/retrolaunch/parser.h | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/tools/retrolaunch/cd_detect.h b/tools/retrolaunch/cd_detect.h index a59305ff6a..bff10d7bda 100644 --- a/tools/retrolaunch/cd_detect.h +++ b/tools/retrolaunch/cd_detect.h @@ -1,3 +1,7 @@ +#ifdef _WIN32 +#include +#else #include +#endif int detect_cd_game(const char* cue_path, char* game_name, size_t max_len); diff --git a/tools/retrolaunch/main.c b/tools/retrolaunch/main.c index b9df06466c..a6c4cf780d 100644 --- a/tools/retrolaunch/main.c +++ b/tools/retrolaunch/main.c @@ -1,4 +1,8 @@ +#ifdef _WIN32 +#include +#else #include +#endif #include #include #include diff --git a/tools/retrolaunch/parser.h b/tools/retrolaunch/parser.h index 9438e6771e..80185bcb9a 100644 --- a/tools/retrolaunch/parser.h +++ b/tools/retrolaunch/parser.h @@ -1,4 +1,8 @@ +#ifdef _WIN32 +#include +#else #include +#endif #define MAX_TOKEN_LEN 255