[llvm-branch-commits] [libc] af2439f - [libc][Obvious] Add header guards for the generated linux syscall header file.

Xun Li via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 30 17:42:11 PDT 2021


Author: Siva Chandra Reddy
Date: 2021-08-30T17:41:45-07:00
New Revision: af2439f559cb6fcb8db797e58adde6b9ec0457cb

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

LOG: [libc][Obvious] Add header guards for the generated linux syscall header file.

Added: 
    

Modified: 
    libc/config/linux/syscall.h.def

Removed: 
    


################################################################################
diff  --git a/libc/config/linux/syscall.h.def b/libc/config/linux/syscall.h.def
index 7f52a26ff0e7b..0daceaf00dded 100644
--- a/libc/config/linux/syscall.h.def
+++ b/libc/config/linux/syscall.h.def
@@ -6,4 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#ifndef LLVM_LIBC_CONFIG_LINUX_SYSCALL_H
+#define LLVM_LIBC_CONFIG_LINUX_SYSCALL_H
+
 %%include_file(${inline_syscalls})
+
+#endif // LLVM_LIBC_CONFIG_LINUX_SYSCALL_H


        


More information about the llvm-branch-commits mailing list