[HIPIFY][fix][#204] Suppress warning message: #pragma once in main file
This commit is contained in:
1 parent
45c7535b1f
commit
df9418c3cd
3 files changed
+13
No files matched your search
@@ -110,4 +110,12 @@ std::error_code real_path(const Twine &path, SmallVectorImpl<char> &output,
|
||||
#endif
|
||||
}
|
||||
|
||||
bool pragma_once_outside_header() {
|
||||
#if LLVM_VERSION_MAJOR < 4
|
||||
return false;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace llcompat
|
||||
Reference in new issue
Block a user