This commit is contained in:
R-Goc 2025-04-19 11:18:51 +00:00 committed by GitHub
commit fd059c80b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 8 deletions

View file

@ -10,9 +10,7 @@
#ifdef AK_OS_WINDOWS
# include <AK/ByteString.h>
# include <AK/HashMap.h>
# include <windows.h>
// Comment to prevent clang-format from including windows.h too late
# include <winbase.h>
# include <AK/Windows.h>
#endif
namespace AK {

View file

@ -19,9 +19,7 @@
# include <pthread.h>
# include <pthread_np.h>
#elif defined(AK_OS_WINDOWS)
# include <Windows.h>
// NOTE: Prevent clang-format from re-ordering this header order
# include <Processthreadsapi.h>
# include <AK/Windows.h>
#endif
namespace AK {

View file

@ -10,8 +10,8 @@
#include <AK/String.h>
#include <AK/Utf16View.h>
#include <AK/Windows.h>
#include <LibCore/Process.h>
#include <windows.h>
namespace Core {

View file

@ -16,7 +16,7 @@
#elif defined(AK_OS_LINUX)
# include <linux/fs.h>
#elif defined(AK_OS_WINDOWS)
# include <windows.h>
# include <AK/Windows.h>
#endif
// On Linux distros that use glibc `basename` is defined as a macro that expands to `__xpg_basename`, so we undefine it