forked from Mirrorlandia_minetest/irrlicht
Consistently include C headers by their C++ wrapper
This commit is contained in:
parent
44a368ef0e
commit
1e89db1b80
@ -8,7 +8,7 @@
|
|||||||
#include "position2d.h"
|
#include "position2d.h"
|
||||||
#include "rect.h"
|
#include "rect.h"
|
||||||
#include "SColor.h"
|
#include "SColor.h"
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
namespace irr
|
namespace irr
|
||||||
{
|
{
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
#include "irrTypes.h"
|
#include "irrTypes.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <float.h>
|
#include <cfloat>
|
||||||
#include <cstdlib> // for abs() etc.
|
#include <cstdlib> // for abs() etc.
|
||||||
#include <limits.h> // For INT_MAX / UINT_MAX
|
#include <climits> // For INT_MAX / UINT_MAX
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
namespace irr
|
namespace irr
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace irr
|
namespace irr
|
||||||
{
|
{
|
||||||
|
@ -25,10 +25,10 @@
|
|||||||
#include <io.h> // for _access
|
#include <io.h> // for _access
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
#elif (defined(_IRR_POSIX_API_) || defined(_IRR_OSX_PLATFORM_) || defined(_IRR_ANDROID_PLATFORM_))
|
#elif (defined(_IRR_POSIX_API_) || defined(_IRR_OSX_PLATFORM_) || defined(_IRR_ANDROID_PLATFORM_))
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include "IImageLoader.h"
|
#include "IImageLoader.h"
|
||||||
|
|
||||||
#include <stdio.h> // required for jpeglib.h
|
#include <cstdio> // required for jpeglib.h
|
||||||
#include <jpeglib.h> // use system lib
|
#include <jpeglib.h> // use system lib
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "irrString.h"
|
#include "irrString.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
|
|
||||||
#include <stdio.h> // required for jpeglib.h
|
#include <cstdio> // required for jpeglib.h
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include <jpeglib.h>
|
#include <jpeglib.h>
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
#ifdef _IRR_COMPILE_WITH_X11_DEVICE_
|
#ifdef _IRR_COMPILE_WITH_X11_DEVICE_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
#include <locale.h>
|
#include <clocale>
|
||||||
#include "IEventReceiver.h"
|
#include "IEventReceiver.h"
|
||||||
#include "ISceneManager.h"
|
#include "ISceneManager.h"
|
||||||
#include "IGUIElement.h"
|
#include "IGUIElement.h"
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
#include "irrString.h"
|
#include "irrString.h"
|
||||||
#include "Keycodes.h"
|
#include "Keycodes.h"
|
||||||
#include "COSOperator.h"
|
#include "COSOperator.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include "SIrrCreationParameters.h"
|
#include "SIrrCreationParameters.h"
|
||||||
#include <SDL_video.h>
|
#include <SDL_video.h>
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#ifdef _IRR_WINDOWS_API_
|
#ifdef _IRR_WINDOWS_API_
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#ifndef _IRR_ANDROID_PLATFORM_
|
#ifndef _IRR_ANDROID_PLATFORM_
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "IReadFile.h"
|
#include "IReadFile.h"
|
||||||
#include "irrString.h"
|
#include "irrString.h"
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
||||||
|
|
||||||
#include "CWriteFile.h"
|
#include "CWriteFile.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
namespace irr
|
namespace irr
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#define bswap_32(X) SDL_Swap32(X)
|
#define bswap_32(X) SDL_Swap32(X)
|
||||||
#define bswap_64(X) SDL_Swap64(X)
|
#define bswap_64(X) SDL_Swap64(X)
|
||||||
#elif defined(_IRR_WINDOWS_API_) && defined(_MSC_VER)
|
#elif defined(_IRR_WINDOWS_API_) && defined(_MSC_VER)
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#define bswap_16(X) _byteswap_ushort(X)
|
#define bswap_16(X) _byteswap_ushort(X)
|
||||||
#define bswap_32(X) _byteswap_ulong(X)
|
#define bswap_32(X) _byteswap_ulong(X)
|
||||||
#define bswap_64(X) _byteswap_uint64(X)
|
#define bswap_64(X) _byteswap_uint64(X)
|
||||||
@ -60,7 +60,7 @@ namespace os
|
|||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
|
|
||||||
namespace irr
|
namespace irr
|
||||||
{
|
{
|
||||||
@ -171,7 +171,7 @@ namespace os
|
|||||||
// ----------------------------------------------------------------
|
// ----------------------------------------------------------------
|
||||||
|
|
||||||
#include <emscripten.h>
|
#include <emscripten.h>
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
namespace irr
|
namespace irr
|
||||||
@ -222,8 +222,8 @@ namespace os
|
|||||||
// linux/ansi version
|
// linux/ansi version
|
||||||
// ----------------------------------------------------------------
|
// ----------------------------------------------------------------
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
namespace irr
|
namespace irr
|
||||||
|
Loading…
Reference in New Issue
Block a user