Skip to content

Commit

Permalink
[SYCLomatic][NFC] Use _WIN32 (using of Windows API) instead of _WIN64. (
Browse files Browse the repository at this point in the history
  • Loading branch information
zhimingwang36 authored Nov 25, 2024
1 parent bbb3b71 commit 9c1e9db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 9c1e9db

Please sign in to comment.