mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-23 04:04:54 +08:00
fix broken ifdef _WIN32
This commit is contained in:
parent
092836d78f
commit
348cb9bdc5
@ -650,7 +650,7 @@ public:
|
|||||||
explicit IOException (std::string file, int line, int errnum)
|
explicit IOException (std::string file, int line, int errnum)
|
||||||
: file_(file), line_(line), errno_(errnum) {
|
: file_(file), line_(line), errno_(errnum) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
#ifdef WIN32
|
#if defined(_WIN32)
|
||||||
char error_str [1024];
|
char error_str [1024];
|
||||||
strerror_s(error_str, 1024, errnum);
|
strerror_s(error_str, 1024, errnum);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user