From 0dfeedb3206fe627ab85cf6f9c9f0da6a8faf020 Mon Sep 17 00:00:00 2001 From: Matthew Bennice Date: Mon, 25 Sep 2023 20:43:17 -0700 Subject: [PATCH] fix open source build failure by switching C's _Alignof for C++'s alignof PiperOrigin-RevId: 568400917 Change-Id: I90eff5e149d491f181370d72e43fdee9d4a3a20e --- test/engine/engine_io_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/engine/engine_io_test.cc b/test/engine/engine_io_test.cc index 668ffda0..8a1c2439 100644 --- a/test/engine/engine_io_test.cc +++ b/test/engine/engine_io_test.cc @@ -784,7 +784,7 @@ void* TestFunction(void* args) { test_args->stack_output = test_ints[0]; int* test_arena_ints = - (int*)mj_arenaAllocByte(test_args->d, sizeof(int) * 10, _Alignof(int)); + (int*)mj_arenaAllocByte(test_args->d, sizeof(int) * 10, alignof(int)); test_arena_ints[0] = test_args->input; test_args->arena_output = test_arena_ints[0];