From abb179e675e28301913b4c6345ed08e5f3a4f88e Mon Sep 17 00:00:00 2001 From: bushing Date: Sun, 12 Apr 2009 17:19:36 -0700 Subject: [PATCH] ff.c: don't build dir_read if we don't need it --- ff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ff.c b/ff.c index a66cb6d..a374f74 100644 --- a/ff.c +++ b/ff.c @@ -833,7 +833,7 @@ FRESULT dir_find ( /*-----------------------------------------------------------------------*/ /* Read an object from the directory */ /*-----------------------------------------------------------------------*/ -#if _FS_MINIMIZE <= 2 +#if (_FS_MINIMIZE < 2) | (!_READONLY) static FRESULT dir_read ( DIR *dj /* Pointer to the directory object to store read object name */