mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Moved std stuff to std.h
This commit is contained in:
parent
e53bc14240
commit
c04c544470
@ -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
18
include/std.hpp
Normal 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__
|
Loading…
x
Reference in New Issue
Block a user