-
Notifications
You must be signed in to change notification settings - Fork 37
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
Conversation
#include <sys/types.h> | ||
#include <sys/stat.h> | ||
#include <fcntl.h> | ||
#ifndef WIN32 | ||
#include <unistd.h> // for sleep |
There was a problem hiding this comment.
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.
src/core/datatypes/forte_wstring.h
Outdated
@@ -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 |
There was a problem hiding this comment.
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.
63a6932
to
276b409
Compare
No description provided.