From ed4bb2aab5410dcf2126d25e05d803c7c3be58d7 Mon Sep 17 00:00:00 2001 From: Kyle Bayes Date: Sat, 19 Aug 2023 05:10:49 -0700 Subject: [PATCH] Change _Alignof to alignof in functions.cc PiperOrigin-RevId: 558388811 Change-Id: I40f394d6dd05215a7499ede5903841a07cd1c9f0 --- python/mujoco/functions.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/mujoco/functions.cc b/python/mujoco/functions.cc index 580595df..1ec7afc7 100644 --- a/python/mujoco/functions.cc +++ b/python/mujoco/functions.cc @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include #include #include @@ -1367,7 +1369,7 @@ PYBIND11_MODULE(_functions, pymodule) { #define MJ_D(x) data->x #define X(type, name, nr, nc) \ data->name = static_cast(InterceptMjErrors(::mj_arenaAlloc)( \ - data, sizeof(type) * (nr) * (nc), _Alignof(type))); \ + data, sizeof(type) * (nr) * (nc), alignof(type))); \ if (!data->name) { \ cleanup(data); \ throw FatalError("insufficient arena memory available"); \