Fix the error and warning in buffering.c
[Rockbox.git] / firmware / include / dir.h
blob4327b916822b9d87ea81e348ff2a73201c845670
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 by Kévin Ferrare
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef _DIR_H_
21 #define _DIR_H_
23 #include "config.h"
25 #ifdef HAVE_DIRCACHE
26 # include "dircache.h"
27 # define DIR DIR_CACHED
28 # define dirent dircache_entry
29 # define opendir opendir_cached
30 # define closedir closedir_cached
31 # define readdir readdir_cached
32 # define closedir closedir_cached
33 # define mkdir mkdir_cached
34 # define rmdir rmdir_cached
35 #else
36 #include "dir_uncached.h"
37 # define DIR DIR_UNCACHED
38 # define dirent dirent_uncached
39 # define opendir opendir_uncached
40 # define closedir closedir_uncached
41 # define readdir readdir_uncached
42 # define closedir closedir_uncached
43 # define mkdir mkdir_uncached
44 # define rmdir rmdir_uncached
45 #endif
47 #endif