mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
AK: Cleanup missing includes and #ifdef evaluation
Problem: - Several files have missing includes. This results in complaints from `clang-tidy`. - `#ifdef` is followed by `#elif <value>` which evaluates to `0`. Solution: - Add missing includes. - Change to `#elif defined(<value>)`.
This commit is contained in:
committed by
Andreas Kling
parent
bbc0487ced
commit
7d8a9bdb1e
Notes:
sideshowbarker
2024-07-19 01:19:50 +09:00
Author: https://github.com/ldm5180 Commit: https://github.com/SerenityOS/serenity/commit/7d8a9bdb1ea Pull-request: https://github.com/SerenityOS/serenity/pull/4134
@@ -30,7 +30,7 @@
|
||||
|
||||
#ifdef __serenity__
|
||||
# include <serenity.h>
|
||||
#elif __linux__ or __APPLE__
|
||||
#elif defined(__linux__) or defined(__APPLE__)
|
||||
# include <pthread.h>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user