Skip to content

fix compilation with cygwin #4467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/goto-cc/cl_message_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void cl_message_handlert::print(

if(full_path.has_value() && !line.empty())
{
#ifdef _WIN32
#ifdef _MSC_VER
std::ifstream in(widen(full_path.value()));
#else
std::ifstream in(full_path.value());
Expand Down
2 changes: 1 addition & 1 deletion src/goto-cc/gcc_message_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void gcc_message_handlert::print(
const auto file_name = location.full_path();
if(file_name.has_value() && !line.empty())
{
#ifdef _WIN32
#ifdef _MSC_VER
std::ifstream in(widen(file_name.value()));
#else
std::ifstream in(file_name.value());
Expand Down
2 changes: 1 addition & 1 deletion unit/util/file_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TEST_CASE("is_directory functionality", "[core][util][file_util]")
{
temp_dirt temp_dir("testXXXXXX");

#ifdef _WIN32
#ifdef _MSC_VER
std::ofstream outfile(widen(temp_dir("file")));
#else
std::ofstream outfile(temp_dir("file"));
Expand Down