[clang] [openmp] [Libomp] Place generated OpenMP headers into build resource directory (PR #88007)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 8 12:26:18 PDT 2024


================
@@ -16,4 +16,12 @@ typedef unsigned __INTPTR_TYPE__ uintptr_t;
 #error Every target should have __INTPTR_TYPE__
 #endif
 
+#ifdef __INTPTR_MAX__
+#define  INTPTR_MAX    __INTPTR_MAX__
+#endif
+
+#ifdef __UINTPTR_MAX__
+#define UINTPTR_MAX   __UINTPTR_MAX__
+#endif
+
----------------
jhuber6 wrote:

Alternatively we could just delete this `stdint.h` altogether, because this only happens because it's using this one instead. But I assume that we override the regular `stdint.h` to reduce the number of live definitions in tests or something.

https://github.com/llvm/llvm-project/pull/88007


More information about the cfe-commits mailing list