Core: Modernize C headers with C++ equivalents
This commit is contained in:
@ -37,7 +37,6 @@
|
||||
#include "core/version.h"
|
||||
#include "main/main.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(DEBUG_ENABLED)
|
||||
@ -48,8 +47,8 @@
|
||||
#include <cxxabi.h>
|
||||
#include <dlfcn.h>
|
||||
#include <execinfo.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <csignal>
|
||||
#include <cstdlib>
|
||||
|
||||
#import <mach-o/dyld.h>
|
||||
#import <mach-o/getsect.h>
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
|
||||
#include "core/config/project_settings.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <cerrno>
|
||||
|
||||
#import <AppKit/NSWorkspace.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@ -32,8 +32,8 @@
|
||||
|
||||
#if defined(MACOS_ENABLED) && defined(GLES3_ENABLED)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
|
||||
#import <EGL/eglext_angle.h>
|
||||
|
||||
|
||||
@ -33,8 +33,8 @@
|
||||
#if defined(MACOS_ENABLED) && defined(GLES3_ENABLED)
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
|
||||
GODOT_CLANG_WARNING_PUSH_AND_IGNORE("-Wdeprecated-declarations") // OpenGL is deprecated in macOS 10.14.
|
||||
|
||||
|
||||
@ -32,7 +32,6 @@
|
||||
|
||||
#include "main/main.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(SANITIZERS_ENABLED)
|
||||
|
||||
Reference in New Issue
Block a user