Skip to content

Commit 7cfe736

Browse files
Endillljhuber6
andauthored
[clang] Fix name conflict with sys/mac.h on AIX (#88644)
Fixes clang-ppc64-aix bot failure after #88559 (0a6f6df) https://lab.llvm.org/buildbot/#/builders/214/builds/11887 --------- Co-authored-by: Joseph Huber <huberjn@outlook.com>
1 parent 3c4d955 commit 7cfe736

File tree

1 file changed

+4
-0
lines changed
  • clang/include/clang/Basic

1 file changed

+4
-0
lines changed

clang/include/clang/Basic/Cuda.h

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ const char *CudaVersionToString(CudaVersion V);
5050
// Input is "Major.Minor"
5151
CudaVersion CudaStringToVersion(const llvm::Twine &S);
5252

53+
// We have a name conflict with sys/mac.h on AIX
54+
#ifdef SM_32
55+
#undef SM_32
56+
#endif
5357
enum class CudaArch {
5458
UNUSED,
5559
UNKNOWN,

0 commit comments

Comments
 (0)