From 7e2fe4704f1f71e3d3605245c8eb9914aaad22b7 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sat, 4 Feb 2023 21:33:27 -0800 Subject: [PATCH] Put windows directive before includes --- gtsam/nonlinear/internal/ExecutionTrace.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gtsam/nonlinear/internal/ExecutionTrace.h b/gtsam/nonlinear/internal/ExecutionTrace.h index 57bfb0795..ccba89dda 100644 --- a/gtsam/nonlinear/internal/ExecutionTrace.h +++ b/gtsam/nonlinear/internal/ExecutionTrace.h @@ -17,6 +17,12 @@ */ #pragma once + +// The MSVC compiler insists on knowing extended alignment is ok. +#ifdef _MSC_VER +#define _ENABLE_EXTENDED_ALIGNED_STORAGE +#endif + #include // Configuration from CMake #include #include @@ -33,11 +39,6 @@ namespace internal { template struct CallRecord; -// The MSVC compiler insists on knowing extended alignment is ok. -#ifdef _MSC_VER -#define _ENABLE_EXTENDED_ALIGNED_STORAGE -#endif - /// Storage type for the execution trace. /// It enforces the proper alignment in a portable way. /// Provide a traceSize() sized array of this type to traceExecution as traceStorage.