diff options
| author | Ray <[email protected]> | 2020-02-04 16:55:24 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-04 16:55:24 +0100 |
| commit | b5fe41f41a88f3763d02db4f2dfa7e13617e9fc3 (patch) | |
| tree | 71b8e53a39cdc8c9a85bb1a2569d3685070d2591 /src/shapes.c | |
| parent | 3cd9e3896aa6d3cf04ac919f03e51f2b60502906 (diff) | |
| download | raylib-b5fe41f41a88f3763d02db4f2dfa7e13617e9fc3.tar.gz raylib-b5fe41f41a88f3763d02db4f2dfa7e13617e9fc3.zip | |
Review libc dependencies and remove when possible
Just for clarification, no plans to remove libc dependency, just did some code analysis to see how much raylib depend on stardard C library. My conclusions:
- stdlib.h: primary dependency is for malloc() and free()
- stdio.h: primary dependency is for FILE access, maybe it could go through a custom ABI?
- string.h: just around 8 functions required
- math.h: just around 8 functions required
- others: 1-2 functions required for some other headers
Diffstat (limited to 'src/shapes.c')
| -rw-r--r-- | src/shapes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shapes.c b/src/shapes.c index 4cae2784..4fb38867 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -42,8 +42,8 @@ #include "rlgl.h" // raylib OpenGL abstraction layer to OpenGL 1.1, 2.1, 3.3+ or ES2 -#include <stdlib.h> // Required for: abs(), fabs() -#include <math.h> // Required for: sinf(), cosf(), sqrtf() +#include <stdlib.h> // Required for: fabs() +#include <math.h> // Required for: sinf(), asinf(), cosf(), acosf(), sqrtf() //---------------------------------------------------------------------------------- // Defines and Macros |
