[llvm-branch-commits] [libc] 277eb68 - Update libc/include/llvm-libc-types/jmp_buf.h

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Apr 29 05:55:08 PDT 2025


Author: Schrodinger ZHU Yifan
Date: 2025-04-29T08:55:01-04:00
New Revision: 277eb688831bf203f32602ca783af044874c5470

URL: https://github.com/llvm/llvm-project/commit/277eb688831bf203f32602ca783af044874c5470
DIFF: https://github.com/llvm/llvm-project/commit/277eb688831bf203f32602ca783af044874c5470.diff

LOG: Update libc/include/llvm-libc-types/jmp_buf.h

Co-authored-by: Petr Hosek <phosek at google.com>

Added: 
    

Modified: 
    libc/include/llvm-libc-types/jmp_buf.h

Removed: 
    


################################################################################
diff  --git a/libc/include/llvm-libc-types/jmp_buf.h b/libc/include/llvm-libc-types/jmp_buf.h
index 90bd60d741293..d1a13a353d17c 100644
--- a/libc/include/llvm-libc-types/jmp_buf.h
+++ b/libc/include/llvm-libc-types/jmp_buf.h
@@ -11,9 +11,11 @@
 
 // TODO: implement sigjmp_buf related functions for other architectures
 // Issue: https://github.com/llvm/llvm-project/issues/136358
-#if defined(__linux__) && (defined(__i386__) || defined(__x86_64__))
+#if defined(__linux__)
+#if defined(__i386__) || defined(__x86_64__)
 #define __LIBC_HAS_SIGJMP_BUF
 #endif
+#endif
 
 #if defined(__LIBC_HAS_SIGJMP_BUF)
 #include "sigset_t.h"


        


More information about the llvm-branch-commits mailing list