diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-08-15 00:31:32 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-08-15 00:31:32 +1000 |
commit | 1105e38414fff26d6b1e278ee3bf19b9b981299c (patch) | |
tree | 0492188b192ddddc83595e55e18981dfb01a1fd5 /src/gfile/inc_stdio.c | |
parent | a588740dc3005972892ba7d39d35d1228bc5f0aa (diff) | |
download | uGFX-1105e38414fff26d6b1e278ee3bf19b9b981299c.tar.gz uGFX-1105e38414fff26d6b1e278ee3bf19b9b981299c.tar.bz2 uGFX-1105e38414fff26d6b1e278ee3bf19b9b981299c.zip |
Separate GFILE into separate source files to prevent future name and include file conflicts.
Diffstat (limited to 'src/gfile/inc_stdio.c')
-rw-r--r-- | src/gfile/inc_stdio.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gfile/inc_stdio.c b/src/gfile/inc_stdio.c index 8dc44dcb..20169ef2 100644 --- a/src/gfile/inc_stdio.c +++ b/src/gfile/inc_stdio.c @@ -5,14 +5,14 @@ * http://ugfx.org/license.html */ -/** - * This file is included by src/gfile/gfile.c - */ - /******************************************************** * Stdio Emulation Routines ********************************************************/ +#include "gfx.h" + +#if GFX_USE_GFILE && GFILE_NEED_STDIO + size_t gstdioRead(void * ptr, size_t size, size_t count, FILE *f) { return gfileRead(f, ptr, size*count)/size; } @@ -43,3 +43,5 @@ int gstdioGetpos(FILE *f, long int *pos) { *pos = f->pos; return 0; } + +#endif //GFX_USE_GFILE && GFILE_NEED_STDIO |