CMake: Fix (Add?) Android support

Not sure if this ever worked, but now it at least compiles.
This commit is contained in:
Ahmad Fatoum 2018-05-20 23:03:04 +02:00
parent ff55af14f9
commit ad8509732c
No known key found for this signature in database
GPG key ID: C3EAC3DE9321D59B
4 changed files with 70 additions and 26 deletions

View file

@ -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()