aboutsummaryrefslogtreecommitdiff
path: root/src/common/alignment.h
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2020-07-18 23:06:13 +0000
committerJan Beich <jbeich@FreeBSD.org>2020-07-18 23:06:16 +0000
commitdb43b37e1545ff9014b3e9131267b22dd6da2ffb (patch)
treea51512d1398475132422d723528b23ad34104a7f /src/common/alignment.h
parent9943a478fe19dad4f770292b989179f71e2d10a0 (diff)
alignment: explicitly include <new> after 723edb4c0659
In file included from src/core/hle/kernel/memory/page_table.cpp:5: src/./common/alignment.h:67:68: error: no member named 'align_val_t' in namespace 'std' return static_cast<T*>(::operator new (n * sizeof(T), std::align_val_t{Align})); ~~~~~^ src/./common/alignment.h:71:51: error: no member named 'align_val_t' in namespace 'std' ::operator delete (p, n * sizeof(T), std::align_val_t{Align}); ~~~~~^
Diffstat (limited to 'src/common/alignment.h')
-rw-r--r--src/common/alignment.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h
index 4025ba6511..ef4d6f8964 100644
--- a/src/common/alignment.h
+++ b/src/common/alignment.h
@@ -3,6 +3,7 @@
#pragma once
#include <cstddef>
+#include <new>
#include <type_traits>
namespace Common {