1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00

fix broken ifdef _WIN32

This commit is contained in:
William Woodall 2013-10-30 11:42:59 -07:00
parent 092836d78f
commit 348cb9bdc5

View File

@ -650,7 +650,7 @@ public:
explicit IOException (std::string file, int line, int errnum)
: file_(file), line_(line), errno_(errnum) {
std::stringstream ss;
#ifdef WIN32
#if defined(_WIN32)
char error_str [1024];
strerror_s(error_str, 1024, errnum);
#else