mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
vc13 support.
This commit is contained in:
parent
672f7740d8
commit
ab3ade86d6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user