From 08680a039b6ffc922731d9a1cfdff20ef204dbba Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 1 Mar 2007 21:05:55 +0000 Subject: This creates a 8051 build that can run in 24Kb of RAM git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@26 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/lib/lib_libfread.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nuttx/lib/lib_libfread.c') diff --git a/nuttx/lib/lib_libfread.c b/nuttx/lib/lib_libfread.c index 8c3deb655..069721d8f 100644 --- a/nuttx/lib/lib_libfread.c +++ b/nuttx/lib/lib_libfread.c @@ -83,6 +83,8 @@ * lib_fread ************************************************************/ +#if CONFIG_NFILE_STREAMS > 0 + ssize_t lib_fread(void *ptr, size_t count, FILE *stream) { unsigned char *dest = (unsigned char*)ptr; @@ -255,3 +257,5 @@ ssize_t lib_fread(void *ptr, size_t count, FILE *stream) } return bytes_read; } + +#endif /* CONFIG_NFILE_STREAMS */ -- cgit v1.2.3