From 725d740bc3ae0851440eddf4c9a5c52244968989 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 27 May 2018 22:03:38 +0200 Subject: proto/ft: add sensible static_assert --- proto-ft/ftnoir_protocol_ft.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'proto-ft') diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 42b1bbf6..059b470c 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -11,6 +11,7 @@ #include "ftnoir_protocol_ft.h" #include "csv/csv.h" +#include #include #include @@ -101,6 +102,9 @@ void freetrack::pose(const double* headpose) assert(!"unaligned access"); static_assert(sizeof(LONG) == 4, ""); +#else + // FTHeap pMemData happens to be aligned on a page boundary by virtue of + static_assert((offsetof(FTHeap, table) & sizeof(LONG)-1) == 0); #endif for (unsigned k = 0; k < 2; k++) -- cgit v1.2.3