summaryrefslogtreecommitdiffhomepage
path: root/src/utils.c
diff options
context:
space:
mode:
authorRay <[email protected]>2020-02-04 16:55:24 +0100
committerRay <[email protected]>2020-02-04 16:55:24 +0100
commitb5fe41f41a88f3763d02db4f2dfa7e13617e9fc3 (patch)
tree71b8e53a39cdc8c9a85bb1a2569d3685070d2591 /src/utils.c
parent3cd9e3896aa6d3cf04ac919f03e51f2b60502906 (diff)
downloadraylib-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/utils.c')
-rw-r--r--src/utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 8b8fb3ec..f9dc5667 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -78,7 +78,6 @@ static UWPMessage *UWPInMessages[MAX_UWP_MESSAGES]; // Messages in from UWP
// Module specific Functions Declaration
//----------------------------------------------------------------------------------
#if defined(PLATFORM_ANDROID)
-// This should be in <stdio.h>, but Travis does not find it...
FILE *funopen(const void *cookie, int (*readfn)(void *, char *, int), int (*writefn)(void *, const char *, int),
fpos_t (*seekfn)(void *, fpos_t, int), int (*closefn)(void *));