From acfe4c294dd3c510c118709174d72c4ee98ffc74 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 5 Mar 2021 20:40:13 -0800 Subject: [PATCH] Fix transitive includes in GraphicsUtil.cpp I ran Include What You Use on the file, and a BUNCH of transitive includes showed up. colourTransform is used in the file, so GraphicsUtil.h needs to be included. libc floor() is used in the file, so math.h needs to be included (I'm removing this next...). NULL is used, so stddef.h. And stdlib.h is used because we use rand() directly instead of going through fRandom(). Speaking of which, we use fRandom(), so Maths.h needs to be included, too. --- desktop_version/src/GraphicsUtil.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desktop_version/src/GraphicsUtil.cpp b/desktop_version/src/GraphicsUtil.cpp index 2eef6cfe..9c5e6149 100644 --- a/desktop_version/src/GraphicsUtil.cpp +++ b/desktop_version/src/GraphicsUtil.cpp @@ -1,4 +1,12 @@ +#include "GraphicsUtil.h" + +#include +#include +#include +#include + #include "Graphics.h" +#include "Maths.h"