summaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-02-24 23:23:29 +0000
committerwdenk <wdenk>2005-02-24 23:23:29 +0000
commit1968e615d4092f728f4732a0b148ded6d1caa731 (patch)
tree66de94197932c86badc51db7f7ba9b17a8640e1a /disk
parent151ab83a936e66cf56971a0e0340609528474734 (diff)
Cleanup USB and partition defines
Diffstat (limited to 'disk')
-rw-r--r--disk/part.c3
-rw-r--r--disk/part_amiga.c6
-rw-r--r--disk/part_dos.c3
-rw-r--r--disk/part_iso.c8
-rw-r--r--disk/part_mac.c6
5 files changed, 20 insertions, 6 deletions
diff --git a/disk/part.c b/disk/part.c
index 0e9ddbd9f8..2255e726cf 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -36,7 +36,8 @@
#if ((CONFIG_COMMANDS & CFG_CMD_IDE) || \
(CONFIG_COMMANDS & CFG_CMD_SCSI) || \
(CONFIG_COMMANDS & CFG_CMD_USB) || \
- (CONFIG_MMC) || (CONFIG_SYSTEMACE) )
+ defined(CONFIG_MMC) || \
+ defined(CONFIG_SYSTEMACE) )
/* ------------------------------------------------------------------------- */
/*
diff --git a/disk/part_amiga.c b/disk/part_amiga.c
index 07b32107d6..41e68fcf0b 100644
--- a/disk/part_amiga.c
+++ b/disk/part_amiga.c
@@ -26,7 +26,11 @@
#include <ide.h>
#include "part_amiga.h"
-#if ((CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI)) && defined(CONFIG_AMIGA_PARTITION)
+#if ((CONFIG_COMMANDS & CFG_CMD_IDE) || \
+ (CONFIG_COMMANDS & CFG_CMD_SCSI) || \
+ (CONFIG_COMMANDS & CFG_CMD_USB) || \
+ defined(CONFIG_MMC) || \
+ defined(CONFIG_SYSTEMACE) ) && defined(CONFIG_AMIGA_PARTITION)
#undef AMIGA_DEBUG
diff --git a/disk/part_dos.c b/disk/part_dos.c
index 49d4fc1115..a37c32d9e2 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -38,7 +38,8 @@
#if ((CONFIG_COMMANDS & CFG_CMD_IDE) || \
(CONFIG_COMMANDS & CFG_CMD_SCSI) || \
(CONFIG_COMMANDS & CFG_CMD_USB) || \
- (CONFIG_SYSTEMACE)) && defined(CONFIG_DOS_PARTITION)
+ defined(CONFIG_MMC) || \
+ defined(CONFIG_SYSTEMACE) ) && defined(CONFIG_DOS_PARTITION)
/* Convert char[4] in little endian format to the host format integer
*/
diff --git a/disk/part_iso.c b/disk/part_iso.c
index ff3e4d9670..ee8c7c6f29 100644
--- a/disk/part_iso.c
+++ b/disk/part_iso.c
@@ -25,9 +25,13 @@
#include <command.h>
#include "part_iso.h"
-#if ((CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI)) && defined(CONFIG_ISO_PARTITION)
+#if ((CONFIG_COMMANDS & CFG_CMD_IDE) || \
+ (CONFIG_COMMANDS & CFG_CMD_SCSI) || \
+ (CONFIG_COMMANDS & CFG_CMD_USB) || \
+ defined(CONFIG_MMC) || \
+ defined(CONFIG_SYSTEMACE) ) && defined(CONFIG_ISO_PARTITION)
-#undef ISO_PART_DEBUG
+/* #define ISO_PART_DEBUG */
#ifdef ISO_PART_DEBUG
#define PRINTF(fmt,args...) printf (fmt ,##args)
diff --git a/disk/part_mac.c b/disk/part_mac.c
index 6e055af915..8c23e211f9 100644
--- a/disk/part_mac.c
+++ b/disk/part_mac.c
@@ -34,7 +34,11 @@
#include <ide.h>
#include "part_mac.h"
-#if ((CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI)) && defined(CONFIG_MAC_PARTITION)
+#if ((CONFIG_COMMANDS & CFG_CMD_IDE) || \
+ (CONFIG_COMMANDS & CFG_CMD_SCSI) || \
+ (CONFIG_COMMANDS & CFG_CMD_USB) || \
+ defined(CONFIG_MMC) || \
+ defined(CONFIG_SYSTEMACE) ) && defined(CONFIG_MAC_PARTITION)
/* stdlib.h causes some compatibility problems; should fixe these! -- wd */
#ifndef __ldiv_t_defined