Skip to content

Commit 330793c

Browse files
[libc] fix clang-tidy llvm-header-guard warnings (#82679)
Towards the goal of getting `ninja libc-lint` back to green, fix the numerous instances of: warning: header guard does not follow preferred style [llvm-header-guard] This is because many of our header guards start with `__LLVM` rather than `LLVM`. To filter just these warnings: $ ninja -k2000 libc-lint 2>&1 | grep llvm-header-guard To automatically apply fixits: $ find libc/src libc/include libc/test -name \*.h | \ xargs -n1 -I {} clang-tidy {} -p build/compile_commands.json \ -checks='-*,llvm-header-guard' --fix --quiet Some manual cleanup is still necessary as headers that were missing header guards outright will have them inserted before the license block (we prefer them after).
1 parent d1f0444 commit 330793c

File tree

210 files changed

+661
-566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+661
-566
lines changed

libc/include/__llvm-libc-common.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef LLVM_LIBC___COMMON_H
10-
#define LLVM_LIBC___COMMON_H
9+
#ifndef LLVM_LIBC_COMMON_H
10+
#define LLVM_LIBC_COMMON_H
1111

1212
#ifdef __cplusplus
1313

@@ -51,4 +51,4 @@
5151

5252
#endif // __cplusplus
5353

54-
#endif // LLVM_LIBC___COMMON_H
54+
#endif // LLVM_LIBC_COMMON_H

libc/include/llvm-libc-macros/containerof-macro.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H
10-
#define __LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H
9+
#ifndef LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H
10+
#define LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H
1111

1212
#include <llvm-libc-macros/offsetof-macro.h>
1313

@@ -17,4 +17,4 @@
1717
(type *)(void *)((const char *)__ptr - offsetof(type, member)); \
1818
})
1919

20-
#endif // __LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H
20+
#endif // LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#ifndef __LLVM_LIBC_MACROS_FCNTL_MACROS_H
2-
#define __LLVM_LIBC_MACROS_FCNTL_MACROS_H
1+
#ifndef LLVM_LIBC_MACROS_FCNTL_MACROS_H
2+
#define LLVM_LIBC_MACROS_FCNTL_MACROS_H
33

44
#ifdef __linux__
55
#include "linux/fcntl-macros.h"
66
#endif
77

8-
#endif // __LLVM_LIBC_MACROS_FCNTL_MACROS_H
8+
#endif // LLVM_LIBC_MACROS_FCNTL_MACROS_H

libc/include/llvm-libc-macros/features-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_FEATURES_MACROS_H
10-
#define __LLVM_LIBC_MACROS_FEATURES_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_FEATURES_MACROS_H
10+
#define LLVM_LIBC_MACROS_FEATURES_MACROS_H
1111

1212
#define __LLVM_LIBC__ 1
1313

14-
#endif // __LLVM_LIBC_MACROS_FEATURES_MACROS_H
14+
#endif // LLVM_LIBC_MACROS_FEATURES_MACROS_H

libc/include/llvm-libc-macros/fenv-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_FENV_MACROS_H
10-
#define __LLVM_LIBC_MACROS_FENV_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_FENV_MACROS_H
10+
#define LLVM_LIBC_MACROS_FENV_MACROS_H
1111

1212
#define FE_DIVBYZERO 1
1313
#define FE_INEXACT 2
@@ -24,4 +24,4 @@
2424

2525
#define FE_DFL_ENV ((fenv_t *)-1)
2626

27-
#endif // __LLVM_LIBC_MACROS_FENV_MACROS_H
27+
#endif // LLVM_LIBC_MACROS_FENV_MACROS_H

libc/include/llvm-libc-macros/file-seek-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H
10-
#define __LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H
10+
#define LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H
1111

1212
#define SEEK_SET 0
1313
#define SEEK_CUR 1
1414
#define SEEK_END 2
1515

16-
#endif // __LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H
16+
#endif // LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H

libc/include/llvm-libc-macros/float-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_FLOAT_MACROS_H
10-
#define __LLVM_LIBC_MACROS_FLOAT_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_FLOAT_MACROS_H
10+
#define LLVM_LIBC_MACROS_FLOAT_MACROS_H
1111

1212
// Suppress `#include_next is a language extension` warnings.
1313
#ifdef __clang__
@@ -169,4 +169,4 @@
169169

170170
// TODO: Add FLT16 and FLT128 constants.
171171

172-
#endif // __LLVM_LIBC_MACROS_FLOAT_MACROS_H
172+
#endif // LLVM_LIBC_MACROS_FLOAT_MACROS_H

libc/include/llvm-libc-macros/generic-error-number-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H
10-
#define __LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H
10+
#define LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H
1111

1212
#define EPERM 1
1313
#define ENOENT 2
@@ -45,4 +45,4 @@
4545
#define ERANGE 34
4646
#define EILSEQ 35
4747

48-
#endif // __LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H
48+
#endif // LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H

libc/include/llvm-libc-macros/gpu/time-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_GPU_TIME_MACROS_H
10-
#define __LLVM_LIBC_MACROS_GPU_TIME_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_GPU_TIME_MACROS_H
10+
#define LLVM_LIBC_MACROS_GPU_TIME_MACROS_H
1111

1212
#define CLOCKS_PER_SEC 1000000
1313

14-
#endif // __LLVM_LIBC_MACROS_GPU_TIME_MACROS_H
14+
#endif // LLVM_LIBC_MACROS_GPU_TIME_MACROS_H

libc/include/llvm-libc-macros/inttypes-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
#ifndef __LLVM_LIBC_MACROS_INTTYPES_MACROS_H
9-
#define __LLVM_LIBC_MACROS_INTTYPES_MACROS_H
8+
#ifndef LLVM_LIBC_MACROS_INTTYPES_MACROS_H
9+
#define LLVM_LIBC_MACROS_INTTYPES_MACROS_H
1010

1111
// fprintf/scanf format macros.
1212
// POSIX.1-2008, Technical Corrigendum 1, XBD/TC1-2008/0050 [211] is applied.
@@ -286,4 +286,4 @@
286286
#define SCNxMAX __UINTMAX_FMTx__
287287
#define SCNxPTR __UINTPTR_FMTx__
288288

289-
#endif // __LLVM_LIBC_MACROS_INTTYPES_MACROS_H
289+
#endif // LLVM_LIBC_MACROS_INTTYPES_MACROS_H

libc/include/llvm-libc-macros/limits-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LIMITS_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LIMITS_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LIMITS_MACROS_H
10+
#define LLVM_LIBC_MACROS_LIMITS_MACROS_H
1111

1212
// Define all C23 macro constants of limits.h
1313

@@ -225,4 +225,4 @@
225225
#define ULLONG_MIN 0ULL
226226
#endif // ULLONG_MIN
227227

228-
#endif // __LLVM_LIBC_MACROS_LIMITS_MACROS_H
228+
#endif // LLVM_LIBC_MACROS_LIMITS_MACROS_H

libc/include/llvm-libc-macros/linux/fcntl-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H
1111

1212
// File creation flags
1313
#define O_CLOEXEC 02000000
@@ -68,4 +68,4 @@
6868
#define F_GETFL 3
6969
#define F_SETFL 4
7070

71-
#endif // __LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H
71+
#endif // LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H

libc/include/llvm-libc-macros/linux/sched-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H
1111

1212
// Definitions of SCHED_* macros must match was linux as at:
1313
// https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/sched.h
@@ -26,4 +26,4 @@
2626
#define CPU_COUNT_S(setsize, set) __sched_getcpucount(setsize, set)
2727
#define CPU_COUNT(set) CPU_COUNT_S(sizeof(cpu_set_t), set)
2828

29-
#endif // __LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H
29+
#endif // LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H

libc/include/llvm-libc-macros/linux/signal-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_SIGNUM_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_SIGNUM_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_SIGNAL_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_SIGNAL_MACROS_H
1111

1212
#define SIGHUP 1
1313
#define SIGINT 2
@@ -101,4 +101,4 @@
101101
#define CLD_STOPPED 5 // child has stopped
102102
#define CLD_CONTINUED 6 // stopped child has continued
103103

104-
#endif // __LLVM_LIBC_MACROS_LINUX_SIGNUM_MACROS_H
104+
#endif // LLVM_LIBC_MACROS_LINUX_SIGNAL_MACROS_H

libc/include/llvm-libc-macros/linux/sys-ioctl-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H
1111

1212
// TODO (michaelrj): Finish defining these macros.
1313
// Just defining this macro for the moment since it's all that we need right
@@ -16,4 +16,4 @@
1616
// think is worth digging into right now.
1717
#define TIOCGETD 0x5424
1818

19-
#endif // __LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H
19+
#endif // LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H

libc/include/llvm-libc-macros/linux/sys-random-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H
1111

1212
// Getrandom flags
1313
#define GRND_RANDOM 0x0001
1414
#define GRND_NONBLOCK 0x0002
1515
#define GRND_INSECURE 0x0004
1616

17-
#endif // __LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H
17+
#endif // LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H

libc/include/llvm-libc-macros/linux/sys-resource-macros.h

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

9+
#ifndef LLVM_LIBC_MACROS_LINUX_SYS_RESOURCE_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_SYS_RESOURCE_MACROS_H
11+
912
#define RLIMIT_CPU 0
1013
#define RLIMIT_FSIZE 1
1114
#define RLIMIT_DATA 2
@@ -24,3 +27,5 @@
2427
#define RLIMIT_RTTIME 15
2528

2629
#define RLIM_INFINITY (~0UL)
30+
31+
#endif // LLVM_LIBC_MACROS_LINUX_SYS_RESOURCE_MACROS_H

libc/include/llvm-libc-macros/linux/sys-socket-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H
1111

1212
// IEEE Std 1003.1-2017 - basedefs/sys_socket.h.html
1313
// Macro values come from the Linux syscall interface.
@@ -25,4 +25,4 @@
2525
#define SOCK_SEQPACKET 5
2626
#define SOCK_PACKET 10
2727

28-
#endif // __LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H
28+
#endif // LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H

libc/include/llvm-libc-macros/linux/sys-stat-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H
1111

1212
// Definitions from linux/stat.h
1313
#define S_IFMT 0170000
@@ -45,4 +45,4 @@
4545
#define S_IWOTH 00002
4646
#define S_IXOTH 00001
4747

48-
#endif // __LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H
48+
#endif // LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H

libc/include/llvm-libc-macros/linux/sys-time-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H
1111

1212
// Add two timevals and put the result in timeval_ptr_result. If the resulting
1313
// usec value is greater than 999,999 then the microseconds are turned into full
@@ -50,4 +50,4 @@
5050
? ((timeval_ptr_a)->tv_usec CMP(timeval_ptr_b)->tv_usec) \
5151
: ((timeval_ptr_a)->tv_sec CMP(timeval_ptr_b)->tv_sec))
5252

53-
#endif // __LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H
53+
#endif // LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H

libc/include/llvm-libc-macros/linux/sys-wait-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H
1111

1212
// Wait flags
1313
#define WNOHANG 1 // Do not block
@@ -41,4 +41,4 @@
4141
#define P_PGID 2
4242
#define P_PIDFD 3
4343

44-
#endif // __LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H
44+
#endif // LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H

libc/include/llvm-libc-macros/linux/termios-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H
1111

1212
// Below are generic definitions of symbolic bit-masks, modes etc. They serve
1313
// most architectures including x86_64, aarch64 but have to be adjusted for few
@@ -164,4 +164,4 @@
164164
#define TCIOFF 2 // Suspend output
165165
#define TCION 3 // Restart output
166166

167-
#endif // __LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H
167+
#endif // LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H

libc/include/llvm-libc-macros/linux/time-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H
1111

1212
// clock type macros
1313
#define CLOCK_REALTIME 0
@@ -23,4 +23,4 @@
2323

2424
#define CLOCKS_PER_SEC 1000000
2525

26-
#endif //__LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H
26+
#endif // LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H

libc/include/llvm-libc-macros/linux/unistd-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H
10-
#define __LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H
9+
#ifndef LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H
10+
#define LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H
1111

1212
// Values for mode argument to the access(...) function.
1313
#define F_OK 0
@@ -27,4 +27,4 @@
2727
(long)(arg4), (long)(arg5), (long)(arg6))
2828
#define syscall(...) __syscall_helper(__VA_ARGS__, 0, 1, 2, 3, 4, 5, 6)
2929

30-
#endif // __LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H
30+
#endif // LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H

0 commit comments

Comments
 (0)