From 1e89db1b80f4dcf353a56c4b07f43ef49dfc2c5a Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 25 Feb 2024 22:09:38 +0100 Subject: [PATCH] Consistently include C headers by their C++ wrapper --- include/IImage.h | 2 +- include/irrMath.h | 4 ++-- include/irrTypes.h | 2 +- source/Irrlicht/CFileSystem.cpp | 8 ++++---- source/Irrlicht/CImageLoaderJPG.h | 2 +- source/Irrlicht/CImageWriterJPG.cpp | 2 +- source/Irrlicht/CIrrDeviceLinux.cpp | 8 ++++---- source/Irrlicht/CIrrDeviceSDL.cpp | 4 ++-- source/Irrlicht/COSOperator.cpp | 2 +- source/Irrlicht/CReadFile.h | 2 +- source/Irrlicht/CWriteFile.cpp | 2 +- source/Irrlicht/os.cpp | 10 +++++----- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/include/IImage.h b/include/IImage.h index 7675959a6..c3f304f31 100644 --- a/include/IImage.h +++ b/include/IImage.h @@ -8,7 +8,7 @@ #include "position2d.h" #include "rect.h" #include "SColor.h" -#include +#include namespace irr { diff --git a/include/irrMath.h b/include/irrMath.h index 0bd0be69c..553a4c899 100644 --- a/include/irrMath.h +++ b/include/irrMath.h @@ -6,9 +6,9 @@ #include "irrTypes.h" #include -#include +#include #include // for abs() etc. -#include // For INT_MAX / UINT_MAX +#include // For INT_MAX / UINT_MAX #include namespace irr diff --git a/include/irrTypes.h b/include/irrTypes.h index 726885e35..54d2eef13 100644 --- a/include/irrTypes.h +++ b/include/irrTypes.h @@ -4,7 +4,7 @@ #pragma once -#include +#include namespace irr { diff --git a/source/Irrlicht/CFileSystem.cpp b/source/Irrlicht/CFileSystem.cpp index 58982154a..5015a52e2 100644 --- a/source/Irrlicht/CFileSystem.cpp +++ b/source/Irrlicht/CFileSystem.cpp @@ -25,10 +25,10 @@ #include // for _access #include #elif (defined(_IRR_POSIX_API_) || defined(_IRR_OSX_PLATFORM_) || defined(_IRR_ANDROID_PLATFORM_)) - #include - #include - #include - #include + #include + #include + #include + #include #include #include #include diff --git a/source/Irrlicht/CImageLoaderJPG.h b/source/Irrlicht/CImageLoaderJPG.h index b59daeb1a..ab2f8191b 100644 --- a/source/Irrlicht/CImageLoaderJPG.h +++ b/source/Irrlicht/CImageLoaderJPG.h @@ -6,7 +6,7 @@ #include "IImageLoader.h" -#include // required for jpeglib.h +#include // required for jpeglib.h #include // use system lib #include diff --git a/source/Irrlicht/CImageWriterJPG.cpp b/source/Irrlicht/CImageWriterJPG.cpp index a640dffe6..304ee13f8 100644 --- a/source/Irrlicht/CImageWriterJPG.cpp +++ b/source/Irrlicht/CImageWriterJPG.cpp @@ -10,7 +10,7 @@ #include "irrString.h" #include "os.h" -#include // required for jpeglib.h +#include // required for jpeglib.h extern "C" { #include diff --git a/source/Irrlicht/CIrrDeviceLinux.cpp b/source/Irrlicht/CIrrDeviceLinux.cpp index 3e4dcb8e1..42bae1914 100644 --- a/source/Irrlicht/CIrrDeviceLinux.cpp +++ b/source/Irrlicht/CIrrDeviceLinux.cpp @@ -6,11 +6,11 @@ #ifdef _IRR_COMPILE_WITH_X11_DEVICE_ -#include -#include +#include +#include #include -#include -#include +#include +#include #include "IEventReceiver.h" #include "ISceneManager.h" #include "IGUIElement.h" diff --git a/source/Irrlicht/CIrrDeviceSDL.cpp b/source/Irrlicht/CIrrDeviceSDL.cpp index 19fb888e3..735a89e43 100644 --- a/source/Irrlicht/CIrrDeviceSDL.cpp +++ b/source/Irrlicht/CIrrDeviceSDL.cpp @@ -16,8 +16,8 @@ #include "irrString.h" #include "Keycodes.h" #include "COSOperator.h" -#include -#include +#include +#include #include "SIrrCreationParameters.h" #include diff --git a/source/Irrlicht/COSOperator.cpp b/source/Irrlicht/COSOperator.cpp index 778872aa9..bc428c2d4 100644 --- a/source/Irrlicht/COSOperator.cpp +++ b/source/Irrlicht/COSOperator.cpp @@ -7,7 +7,7 @@ #ifdef _IRR_WINDOWS_API_ #include #else -#include +#include #include #ifndef _IRR_ANDROID_PLATFORM_ #include diff --git a/source/Irrlicht/CReadFile.h b/source/Irrlicht/CReadFile.h index a599e0665..1a4c15c23 100644 --- a/source/Irrlicht/CReadFile.h +++ b/source/Irrlicht/CReadFile.h @@ -4,7 +4,7 @@ #pragma once -#include +#include #include "IReadFile.h" #include "irrString.h" diff --git a/source/Irrlicht/CWriteFile.cpp b/source/Irrlicht/CWriteFile.cpp index a9d8d4052..322a6b2be 100644 --- a/source/Irrlicht/CWriteFile.cpp +++ b/source/Irrlicht/CWriteFile.cpp @@ -3,7 +3,7 @@ // For conditions of distribution and use, see copyright notice in irrlicht.h #include "CWriteFile.h" -#include +#include namespace irr { diff --git a/source/Irrlicht/os.cpp b/source/Irrlicht/os.cpp index a2d8834a9..a3087f6ed 100644 --- a/source/Irrlicht/os.cpp +++ b/source/Irrlicht/os.cpp @@ -12,7 +12,7 @@ #define bswap_32(X) SDL_Swap32(X) #define bswap_64(X) SDL_Swap64(X) #elif defined(_IRR_WINDOWS_API_) && defined(_MSC_VER) - #include + #include #define bswap_16(X) _byteswap_ushort(X) #define bswap_32(X) _byteswap_ulong(X) #define bswap_64(X) _byteswap_uint64(X) @@ -60,7 +60,7 @@ namespace os #define WIN32_LEAN_AND_MEAN #include -#include +#include namespace irr { @@ -171,7 +171,7 @@ namespace os // ---------------------------------------------------------------- #include -#include +#include #include namespace irr @@ -222,8 +222,8 @@ namespace os // linux/ansi version // ---------------------------------------------------------------- -#include -#include +#include +#include #include namespace irr