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 */