clang-tidy: fix bugprone-reserved-identifier warnings

This commit is contained in:
Ben Boeckel
2021-01-22 10:33:22 -05:00
parent 675d81be6c
commit c826461d9c
13 changed files with 60 additions and 50 deletions

View File

@@ -3,10 +3,12 @@
#if !defined(_WIN32) && !defined(__sun)
// POSIX APIs are needed
// NOLINTNEXTLINE(bugprone-reserved-identifier)
# define _POSIX_C_SOURCE 200809L
#endif
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
// For isascii
// NOLINTNEXTLINE(bugprone-reserved-identifier)
# define _XOPEN_SOURCE 700
#endif