[clang] [clang] Fix name conflict with `sys/mac.h` on AIX (PR #88644)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 15 12:15:39 PDT 2024
================
@@ -50,6 +50,10 @@ 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 SM_32
+#undef SM_32
+#endif
----------------
Artem-B wrote:
SGTM. Thank you for taking care of this issue.
On a side note, do we know if there's a way to file a bug for AIX? They should not be setting macros with names that could conceivably be defined by a user. In theory. I think normally they should be double-underscore-prefixed.
https://github.com/llvm/llvm-project/pull/88644
More information about the cfe-commits
mailing list