mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Core: Modernize C headers with C++ equivalents
This commit is contained in:
parent
a8ece29adc
commit
01fc9aee6c
101 changed files with 126 additions and 168 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
#include "core/templates/list.h"
|
||||
#include "core/templates/vector.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
|
||||
class OS {
|
||||
static OS *singleton;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue