Skip to content

Commit ddaa5b3

Browse files
[SystemZ] Add header guard macros to vecintrin.h (llvm#129170)
Add header guard macros to clang/lib/Headers/vecintrin.h. Found while compiling the latest numpy with clang 19 on s390x which ends up including vecintrin.h twice. The gcc version of this file has header guards so numpy compiles fine with gcc. Signed-off-by: Jonathan Albrecht <[email protected]>
1 parent d0edd93 commit ddaa5b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/lib/Headers/vecintrin.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
*===-----------------------------------------------------------------------===
88
*/
99

10+
#ifndef _VECINTRIN_H
11+
#define _VECINTRIN_H
12+
1013
#if defined(__s390x__) && defined(__VEC__)
1114

1215
#define __ATTRS_ai __attribute__((__always_inline__))
@@ -12861,3 +12864,5 @@ vec_search_string_until_zero_cc(__vector unsigned int __a,
1286112864
#error "Use -fzvector to enable vector extensions"
1286212865

1286312866
#endif
12867+
12868+
#endif /* _VECINTRIN_H */

0 commit comments

Comments
 (0)