diff options
| author | Ray <raysan5@gmail.com> | 2019-01-02 17:41:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-02 17:41:43 +0100 |
| commit | 30e79b47270eb14523699e15693ca9eb63b5415e (patch) | |
| tree | 1cbccb919340e9936d01a998d3a47ce829f06fc7 /src | |
| parent | 63f9f91ea88e74b622ea583df252899b2da40fd0 (diff) | |
| parent | 9a40529ae74507da20c5e414f8cd7073b83733e8 (diff) | |
| download | raylib-30e79b47270eb14523699e15693ca9eb63b5415e.tar.gz raylib-30e79b47270eb14523699e15693ca9eb63b5415e.zip | |
Merge pull request #708 from BaZom/master
utils: declare funopen only on Android
Diffstat (limited to 'src')
| -rw-r--r-- | src/utils.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils.c b/src/utils.c index b2951040..e891ef72 100644 --- a/src/utils.c +++ b/src/utils.c @@ -46,11 +46,6 @@ #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 *)); - //---------------------------------------------------------------------------------- // Global Variables Definition //---------------------------------------------------------------------------------- @@ -67,6 +62,11 @@ AAssetManager *assetManager; // Module specific Functions Declaration //---------------------------------------------------------------------------------- #if defined(PLATFORM_ANDROID) +/* 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 *)); + static int android_read(void *cookie, char *buf, int size); static int android_write(void *cookie, const char *buf, int size); static fpos_t android_seek(void *cookie, fpos_t offset, int whence); |
