Skip to content
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

Fix compile errors for VS Build Tools 2019 #25

Merged
merged 4 commits into from
Feb 29, 2024

Conversation

kumajaya
Copy link

No description provided.

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifndef WIN32
#include <unistd.h> // for sleep
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the better solution for this file is not to fix that here but use CThread::sleepThread( instead of sleep. Because the CThread::sleepThread( we do the hardware/OS abstraction allready.

@@ -52,13 +52,22 @@ class CIEC_WSTRING final : public CIEC_ANY_STRING {
TForteWChar value = static_cast<TForteWChar>(paValue);
auto &converter = std::use_facet<std::codecvt<char16_t, char, std::mbstate_t>>(std::locale());
std::mbstate_t mb{};
#ifdef _MSC_VER
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think in this case it makes sense to have two versions. I would prefer to only have the one that compiles for all systems.

@azoitl azoitl merged commit 1dd2787 into eclipse-4diac:develop Feb 29, 2024
3 checks passed
@kumajaya kumajaya deleted the fix/msbuild branch February 29, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants