From c53c82aa91c55a2b397afdcd858eee9154a6b4ea Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 6 Aug 2020 10:02:53 +0200 Subject: [PATCH] hackz. --- src/lib/cross_windows.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/lib/cross_windows.cc b/src/lib/cross_windows.cc index 337750dcb..01ddceee5 100644 --- a/src/lib/cross_windows.cc +++ b/src/lib/cross_windows.cc @@ -77,6 +77,21 @@ dcpomatic_sleep_milliseconds (int ms) Sleep (ms); } + +void* +dcpomatic_aligned_alloc (size_t size, size_t alignment) +{ + return _aligned_malloc (size, alignment); +} + + +void +dcpomatic_aligned_free (void* ptr) +{ + _aligned_free (ptr); +} + + /** @return A string of CPU information (model name etc.) */ string cpu_info () -- 2.30.2