summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-04-01 21:22:18 +0200
committerraysan5 <[email protected]>2021-04-01 21:22:18 +0200
commitb54d96205f039560af4800be2448ea7b8d98818c (patch)
tree87dc0072acf399f5eb7fcce955d6ee18d06fd2be
parent1da0176cad7b935f5139ee9e059303fc67a3243b (diff)
downloadraylib-b54d96205f039560af4800be2448ea7b8d98818c.tar.gz
raylib-b54d96205f039560af4800be2448ea7b8d98818c.zip
Review libc dependency
-rw-r--r--src/core.c2
-rw-r--r--src/rlgl.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 79466914..69d622cf 100644
--- a/src/core.c
+++ b/src/core.c
@@ -165,7 +165,7 @@
#include <stdio.h> // Required for: sprintf() [Used in OpenURL()]
#include <string.h> // Required for: strrchr(), strcmp(), strlen()
#include <time.h> // Required for: time() [Used in InitTimer()]
-#include <math.h> // Required for: tan() [Used in BeginMode3D()]
+#include <math.h> // Required for: tan() [Used in BeginMode3D()], atan2f() [Used in InitVrSimulator()]
#include <sys/stat.h> // Required for: stat() [Used in GetFileModTime()]
diff --git a/src/rlgl.h b/src/rlgl.h
index 1d514b7a..ff8aba18 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -682,7 +682,6 @@ RLAPI Texture2D rlGenTextureBRDF(Shader shader, int size); // Gener
#include <stdlib.h> // Required for: malloc(), free()
#include <string.h> // Required for: strcmp(), strlen() [Used in rlglInit(), on extensions loading]
-#include <math.h> // Required for: atan2f()
#if defined(GRAPHICS_API_OPENGL_11)
#if defined(__APPLE__)