From 6722e6344c8b71e666b42fce6cc918b98bfdf772 Mon Sep 17 00:00:00 2001 From: Erin Catto Date: Sat, 27 Jul 2024 22:24:38 -0700 Subject: [PATCH] stddef again --- samples/main.cpp | 1 - samples/settings.h | 2 +- src/manifold.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/main.cpp b/samples/main.cpp index 26b1ed32..09bbc11d 100644 --- a/samples/main.cpp +++ b/samples/main.cpp @@ -538,7 +538,6 @@ int main(int, char**) s_settings.Load(); s_settings.workerCount = b2MinInt(8, (int)enki::GetNumHardwareThreads() / 2); - s_settings.workerCount = 1; SortTests(); glfwSetErrorCallback(glfwErrorCallback); diff --git a/samples/settings.h b/samples/settings.h index 37d1c54e..47524664 100644 --- a/samples/settings.h +++ b/samples/settings.h @@ -34,7 +34,7 @@ struct Settings bool drawProfile = false; bool enableWarmStarting = true; bool enableContinuous = true; - bool enableSleep = false; + bool enableSleep = true; bool pause = false; bool singleStep = false; bool restart = false; diff --git a/src/manifold.c b/src/manifold.c index a29df77c..1c1239cb 100644 --- a/src/manifold.c +++ b/src/manifold.c @@ -8,6 +8,7 @@ #include "box2d/math_functions.h" #include +#include #define B2_MAKE_ID(A, B) ((uint8_t)(A) << 8 | (uint8_t)(B))