Skip to content

Commit 1bfe2b4

Browse files
authored
Update base.cc to check for COMPILER_MSVC or _WIN32.
1 parent 5f1778e commit 1bfe2b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/base.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ limitations under the License.
1616
#include "base.h"
1717

1818
#include <string>
19-
#ifdef _WIN32
19+
#if defined(COMPILER_MSVC) || defined(_WIN32)
2020
#include <sstream>
21-
#endif // _WIN32
21+
#endif // defined(COMPILER_MSVC) || defined(_WIN32)
2222

2323
namespace chrome_lang_id {
2424

2525
// TODO(abakalov): Pick the most efficient approach.
26-
#ifdef _WIN32
26+
#if defined(COMPILER_MSVC) || defined(_WIN32)
2727
std::string Int64ToString(int64 input) {
2828
std::stringstream stream;
2929
stream << input;
3030
return stream.str();
3131
}
3232
#else
3333
std::string Int64ToString(int64 input) { return std::to_string(input); }
34-
#endif // _WIN32
34+
#endif // defined(COMPILER_MSVC) || defined(_WIN32)
3535

3636
} // namespace chrome_lang_id

0 commit comments

Comments
 (0)