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.