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

Use _WIN32 (using of Windows API) instead of _WIN64. #2509

Merged
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
4 changes: 2 additions & 2 deletions clang/lib/DPCT/FileGenerator/GenFiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ std::map<clang::tooling::UnifiedPath, bool> IncludeFileMap;
bool rewriteDir(std::string &FilePath,
const clang::tooling::UnifiedPath &InRoot,
const clang::tooling::UnifiedPath &OutRoot) {
#if defined(_WIN64)
#if defined(_WIN32)
std::string Filename = sys::path::filename(FilePath).str();
#endif

Expand All @@ -163,7 +163,7 @@ bool rewriteDir(std::string &FilePath,
path::begin(InRoot.getCanonicalPath()));
SmallString<512> NewFilePath = OutRoot.getCanonicalPath();
path::append(NewFilePath, PathDiff.first, path::end(FilePath));
#if defined(_WIN64)
#if defined(_WIN32)
sys::path::remove_filename(NewFilePath);
sys::path::append(NewFilePath, Filename);
#endif
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/DPCT/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const char *getNL(bool AddBackSlash) {
return "\\\n";
}
return "\n";
#elif defined(_WIN64)
#elif defined(_WIN32)
if (AddBackSlash) {
return "\\\r\n";
}
Expand Down