mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Rewrote usages of define(_MSC_VER) to ifdef _MSC_VER
This commit is contained in:
parent
5cdc6e150e
commit
a105ea9d80
6 changed files with 17 additions and 19 deletions
|
@ -2539,7 +2539,7 @@ static void strerror_r_helper(int result, char* buf, size_t buflen)
|
|||
|
||||
void zeek_strerror_r(int zeek_errno, char* buf, size_t buflen)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
#ifdef _MSC_VER
|
||||
auto str = "Error number: " + std::to_string(zeek_errno);
|
||||
auto res = str.data();
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue