Skip to content

Commit

Permalink
Added an excluding macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Natashi committed Jan 17, 2021
1 parent 00141c3 commit 9ce8146
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/GcLib/gstd/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,9 @@ bool File::Open(DWORD typeAccess) {
hFile_.open(path_, modeAccess | std::ios::binary);
}
catch (std::system_error& e) {
int code = errno;
lastError_ = StringUtility::FormatToWide("%s (code=%d)",
strerror(errno), errno);
strerror(code), code);
}
hFile_.exceptions(0);

Expand Down
6 changes: 5 additions & 1 deletion source/GcLib/gstd/VectorExtension.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "../pch.h"

#if defined(DNH_PROJ_EXECUTOR)

namespace gstd {
//================================================================
//Vectorize
Expand Down Expand Up @@ -465,4 +467,6 @@ namespace gstd {
#endif
return res;
}
}
}

#endif

0 comments on commit 9ce8146

Please sign in to comment.