another attempt
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12359 a1c6a512-1295-4272-9138-f99709370657
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 4a25b91..f38a8bf 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -218,7 +218,7 @@
/* Enable the directory cache and tagcache in RAM if we have
* plenty of RAM. Both features can be enabled independently. */
-#if (!defined(MEMORYSIZE) || (MEMORYSIZE > 8) || (MEM > 8)) && \
+#if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8) && \
!defined(BOOTLOADER)
#define HAVE_DIRCACHE
#ifdef HAVE_TAGCACHE