Skip to content

Commit

Permalink
src: Use gnu C and C++ standards as default for C and C++ SourceGroup…
Browse files Browse the repository at this point in the history
…Settings on Linux platform (issue CoatiSoftware#748)
  • Loading branch information
egraether committed Nov 8, 2019
1 parent 9281c23 commit d2a1ac4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

std::wstring SourceGroupSettingsWithCStandard::getDefaultCStandardStatic()
{
#ifdef __linux__
return L"gnu11"
#else
return L"c11";
#endif
}

std::wstring SourceGroupSettingsWithCStandard::getCStandard() const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

std::wstring SourceGroupSettingsWithCppStandard::getDefaultCppStandardStatic()
{
#ifdef __linux__
return L"gnu++17"
#else
return L"c++17";
#endif
}

std::wstring SourceGroupSettingsWithCppStandard::getCppStandard() const
Expand Down

0 comments on commit d2a1ac4

Please sign in to comment.