Explorar el Código

common/cache_management: Amend header includes

Narrows the include in the header to <cstddef>, since that's what houses
size_t's definition, meanwhile the <cstdint> include can be moved into
the cpp file.
Lioncash hace 3 años
padre
commit
c2c9b44749
Se han modificado 2 ficheros con 3 adiciones y 4 borrados
  1. 2 3
      src/common/cache_management.cpp
  2. 1 1
      src/common/cache_management.h

+ 2 - 3
src/common/cache_management.cpp

@@ -1,11 +1,10 @@
 // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
 // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
 // SPDX-License-Identifier: GPL-2.0-or-later
 // SPDX-License-Identifier: GPL-2.0-or-later
 
 
+#include <cstdint>
 #include <cstring>
 #include <cstring>
 
 
-#include "alignment.h"
-#include "cache_management.h"
-#include "common_types.h"
+#include "common/cache_management.h"
 
 
 namespace Common {
 namespace Common {
 
 

+ 1 - 1
src/common/cache_management.h

@@ -3,7 +3,7 @@
 
 
 #pragma once
 #pragma once
 
 
-#include "stdlib.h"
+#include <cstddef>
 
 
 namespace Common {
 namespace Common {