diff options
Diffstat (limited to 'tools/irecovery.c')
| -rw-r--r-- | tools/irecovery.c | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c index b41573c..b293324 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c  | |||
| @@ -37,18 +37,16 @@ | |||
| 37 | #include <readline/readline.h> | 37 | #include <readline/readline.h> | 
| 38 | #include <readline/history.h> | 38 | #include <readline/history.h> | 
| 39 | #else | 39 | #else | 
| 40 | #ifndef WIN32 | 40 | #ifndef _WIN32 | 
| 41 | #include <termios.h> | 41 | #include <termios.h> | 
| 42 | #endif | 42 | #endif | 
| 43 | #endif | 43 | #endif | 
| 44 | 44 | ||
| 45 | #ifdef WIN32 | 45 | #ifdef _WIN32 | 
| 46 | #include <windows.h> | 46 | #include <windows.h> | 
| 47 | #include <conio.h> | 47 | #include <conio.h> | 
| 48 | #ifndef sleep | ||
| 49 | #define sleep(n) Sleep(1000 * n) | 48 | #define sleep(n) Sleep(1000 * n) | 
| 50 | #endif | 49 | #endif | 
| 51 | #endif | ||
| 52 | 50 | ||
| 53 | #define FILE_HISTORY_PATH ".irecovery" | 51 | #define FILE_HISTORY_PATH ".irecovery" | 
| 54 | #define debug(...) if (verbose) fprintf(stderr, __VA_ARGS__) | 52 | #define debug(...) if (verbose) fprintf(stderr, __VA_ARGS__) | 
| @@ -293,7 +291,7 @@ static void append_command_to_history(const char* cmd) | |||
| 293 | } | 291 | } | 
| 294 | 292 | ||
| 295 | #ifndef HAVE_READLINE | 293 | #ifndef HAVE_READLINE | 
| 296 | #ifdef WIN32 | 294 | #ifdef _WIN32 | 
| 297 | #define BS_CC '\b' | 295 | #define BS_CC '\b' | 
| 298 | #else | 296 | #else | 
| 299 | #define BS_CC 0x7f | 297 | #define BS_CC 0x7f | 
