aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-03 00:44:55 -0400
committerJack Lloyd <[email protected]>2017-10-03 00:44:55 -0400
commit4581cb83d616ec5bdea413019994fc01dfdf49ec (patch)
treed9317857cd46e4baf2ab03089cfc4a48e9e0b6be /src/lib/utils
parent04d64c3e0fe60a25b1f1a5c2eaf7e2986d2130dd (diff)
MSVC wants __declspec(restrict) on both declaration and definition
Thankfully GCC doesn't mind it being on the definition.
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/mem_ops.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/mem_ops.cpp b/src/lib/utils/mem_ops.cpp
index 9018979de..29c93eb15 100644
--- a/src/lib/utils/mem_ops.cpp
+++ b/src/lib/utils/mem_ops.cpp
@@ -13,7 +13,7 @@
namespace Botan {
-void* allocate_memory(size_t elems, size_t elem_size)
+BOTAN_MALLOC_FN void* allocate_memory(size_t elems, size_t elem_size)
{
#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
if(void* p = mlock_allocator::instance().allocate(elems, elem_size))