Add guards around std library headers (#3013)

* Last fix for standard compiler error

* adding define guards around headers

* rename cmath.h and climits.h to cmath and climits respectively

* renaming cstdarg.h to cstdarg

* renaming cstdlib.h to cstdlib

* renaming cstring.h to cstring

* renaming cstdio.h to cstdio

* renaming cmath locale ctype

* renaming stdarg string and va_list

* renaming cstddef

* renaming stdio stddef stdlib

* renaming algorithm, functional, iterator, memory, and utility

* renaming bitset, cstdint, limits, and stdint

* renaming new and type_traits

* update quote includes for standard library headers to angle bracket includes
This commit is contained in:
kipcode66
2026-01-05 06:50:45 -05:00
committed by GitHub
parent 8561613852
commit ea53712c30
342 changed files with 422 additions and 398 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
#include "d/d_resorce.h"
#include "d/d_s_play.h"
#include <math.h>
#include <math>
/**
* @ingroup actors-objects
+1 -1
View File
@@ -2,7 +2,7 @@
#define D_MENU_D_MENU_DMAP_MAP_H
#include "d/d_menu_dmap.h"
#include <math.h>
#include <math>
class dMenu_DmapMap_c {
public:
+2
View File
@@ -42,7 +42,9 @@ public:
return --mCount;
}
#ifdef __MWERKS__
static const int NAME_MAX = 9;
#endif
private:
/* 0x00 */ char mArchiveName[11];
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef D_SAVE_D_SAVE_H
#define D_SAVE_D_SAVE_H
#include "string.h"
#include <string>
#include "SSystem/SComponent/c_xyz.h"
#include <dolphin/os.h>
#include "global.h"
+3 -3
View File
@@ -5,13 +5,13 @@
#include "weak_bss_1109_to_1009.h" // IWYU pragma: export
// Fixes weak .data
#include "cmath.h" // IWYU pragma: export
#include <cmath> // IWYU pragma: export
#include "JSystem/J3DGraphBase/J3DMatBlock.h" // IWYU pragma: export
#include "Z2AudioLib/Z2Calc.h" // IWYU pragma: export
// Fixes weak function ordering
#include "math.h" // IWYU pragma: export
#include "cstring.h" // IWYU pragma: export
#include <math> // IWYU pragma: export
#include <cstring> // IWYU pragma: export
#include "JSystem/JKernel/JKRDisposer.h" // IWYU pragma: export
#include "JSystem/J3DGraphBase/J3DPacket.h" // IWYU pragma: export
#include "JSystem/J3DGraphAnimator/J3DMaterialAnm.h" // IWYU pragma: export