[clang] [clang] Fix name conflict with `sys/mac.h` on AIX (PR #88644)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 14 05:46:20 PDT 2024
================
@@ -50,6 +50,11 @@ const char *CudaVersionToString(CudaVersion V);
// Input is "Major.Minor"
CudaVersion CudaStringToVersion(const llvm::Twine &S);
+// We have a name conflict with sys/mac.h on AIX
+#ifdef _AIX
+#undef SM_32
+#endif
+
----------------
jhuber6 wrote:
```suggestion
// We have a name conflict with sys/mac.h on AIX
#ifdef SM_32
#undef SM_32
#endif
```
https://github.com/llvm/llvm-project/pull/88644
More information about the cfe-commits
mailing list