Moved std stuff to std.h

This commit is contained in:
Alex 2022-12-29 02:05:40 +02:00
parent e53bc14240
commit c04c544470
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
2 changed files with 19 additions and 12 deletions

View File

@ -6,6 +6,7 @@
#include <bitmap.hpp>
#include <vector.hpp>
#include <lock.hpp>
#include <std.hpp>
#endif // __cplusplus
#include <types.h>
@ -658,18 +659,6 @@ namespace Memory
};
}
/**
* @brief // stub namespace for std::align_val_t and new operator
* @note // Found on https://gcc.gnu.org/legacy-ml/gcc-patches/2016-09/msg00628.html for "_ZnwmSt11align_val_t" compiler error
*/
namespace std
{
typedef __SIZE_TYPE__ size_t;
enum class align_val_t : std::size_t
{
};
}
void InitializeMemoryManagement(BootInfo *Info);
void *operator new(size_t Size);

18
include/std.hpp Normal file
View File

@ -0,0 +1,18 @@
#ifndef __FENNIX_KERNEL_STD_H__
#define __FENNIX_KERNEL_STD_H__
#include <types.h>
/**
* @brief // stub namespace for std::align_val_t and new operator
* @note // Found on https://gcc.gnu.org/legacy-ml/gcc-patches/2016-09/msg00628.html for "_ZnwmSt11align_val_t" compiler error
*/
namespace std
{
typedef __SIZE_TYPE__ size_t;
enum class align_val_t : std::size_t
{
};
}
#endif // !__FENNIX_KERNEL_STD_H__