1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-09 10:29:45 +01:00

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.
This commit is contained in:
Misa 2021-03-05 20:40:13 -08:00 committed by Ethan Lee
parent c1572de9e2
commit acfe4c294d

View file

@ -1,4 +1,12 @@
#include "GraphicsUtil.h"
#include <math.h>
#include <SDL.h>
#include <stddef.h>
#include <stdlib.h>
#include "Graphics.h"
#include "Maths.h"