Core: Modernize C headers with C++ equivalents

This commit is contained in:
Thaddeus Crews 2025-04-28 16:05:13 -05:00
parent a8ece29adc
commit 01fc9aee6c
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
101 changed files with 126 additions and 168 deletions

View file

@ -32,8 +32,7 @@
#include "core/templates/safe_refcount.h"
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
void *operator new(size_t p_size, const char *p_description) {
return Memory::alloc_static(p_size, false);

View file

@ -33,7 +33,6 @@
#include "core/error/error_macros.h"
#include "core/templates/safe_refcount.h"
#include <cstring>
#include <new> // IWYU pragma: keep // `new` operators.
#include <type_traits>

View file

@ -37,7 +37,7 @@
#include "core/os/midi_driver.h"
#include "core/version_generated.gen.h"
#include <stdarg.h>
#include <cstdarg>
#ifdef MINGW_ENABLED
#define MINGW_STDTHREAD_REDUNDANCY_WARNING

View file

@ -38,7 +38,7 @@
#include "core/templates/list.h"
#include "core/templates/vector.h"
#include <stdlib.h>
#include <cstdlib>
class OS {
static OS *singleton;

View file

@ -28,7 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#include "time.h"
#include "time.h" // NOLINT(modernize-deprecated-headers) False positive with C-Header of the same name.
#include "core/os/os.h"