diff options
| author | Ahmad Fatoum <[email protected]> | 2018-05-20 23:03:04 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-05-21 01:08:29 +0200 |
| commit | ad8509732ca2a235c1735fae739577a59e17cf1c (patch) | |
| tree | 8a26aa7ac0dae365dd281792512216d326c82d3a /src/utils.c | |
| parent | ff55af14f98fc70895ccdbbb4dccdccd68dec9dd (diff) | |
| download | raylib-ad8509732ca2a235c1735fae739577a59e17cf1c.tar.gz raylib-ad8509732ca2a235c1735fae739577a59e17cf1c.zip | |
CMake: Fix (Add?) Android support
Not sure if this ever worked, but now it at least compiles.
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c index 9d9d8b55..cd75e695 100644 --- a/src/utils.c +++ b/src/utils.c @@ -57,6 +57,12 @@ #include <stdarg.h> // Required for: va_list, va_start(), vfprintf(), va_end() #include <string.h> // Required for: strlen(), strrchr(), strcmp() +/* This should be in <stdio.h>, but Travis doesn't 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 *)); + + #if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI) #define STB_IMAGE_WRITE_IMPLEMENTATION #include "external/stb_image_write.h" // Required for: stbi_write_bmp(), stbi_write_png() |
