|
|
@ -138,7 +138,9 @@ |
|
|
|
#ifndef STDOUT_FILENO |
|
|
|
#ifndef STDOUT_FILENO |
|
|
|
#define STDOUT_FILENO 1 |
|
|
|
#define STDOUT_FILENO 1 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#if (_MSC_VER < 1900) |
|
|
|
#define snprintf _snprintf |
|
|
|
#define snprintf _snprintf |
|
|
|
|
|
|
|
#endif |
|
|
|
#define isatty _isatty |
|
|
|
#define isatty _isatty |
|
|
|
#define write win32_write |
|
|
|
#define write win32_write |
|
|
|
#define read _read |
|
|
|
#define read _read |
|
|
@ -1911,7 +1913,9 @@ inline const std::vector<std::string>& GetHistory() { |
|
|
|
} // namespace linenoise
|
|
|
|
} // namespace linenoise
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32 |
|
|
|
#ifdef _WIN32 |
|
|
|
|
|
|
|
#if (_MSC_VER < 1900) |
|
|
|
#undef snprintf |
|
|
|
#undef snprintf |
|
|
|
|
|
|
|
#endif |
|
|
|
#undef isatty |
|
|
|
#undef isatty |
|
|
|
#undef write |
|
|
|
#undef write |
|
|
|
#undef read |
|
|
|
#undef read |
|
|
|