diff options
Diffstat (limited to 'include/common.h')
| -rw-r--r-- | include/common.h | 12 | 
1 files changed, 7 insertions, 5 deletions
diff --git a/include/common.h b/include/common.h index 54503ed3e..21c05db3f 100644 --- a/include/common.h +++ b/include/common.h @@ -180,11 +180,13 @@ typedef void (interrupt_handler_t)(void *);   * General Purpose Utilities   */  #define min(X, Y)				\ -	({ typeof (X) __x = (X), __y = (Y);	\ +	({ typeof (X) __x = (X);		\ +		typeof (Y) __y = (Y);		\  		(__x < __y) ? __x : __y; })  #define max(X, Y)				\ -	({ typeof (X) __x = (X), __y = (Y);	\ +	({ typeof (X) __x = (X);		\ +		typeof (Y) __y = (Y);		\  		(__x > __y) ? __x : __y; })  #define MIN(x, y)  min(x, y) @@ -270,9 +272,9 @@ int	setenv	     (char *, char *);  # include <asm/setup.h>  # include <asm/u-boot-arm.h>	/* ARM version to be fixed! */  #endif /* CONFIG_ARM */ -#ifdef CONFIG_I386		/* x86 version to be fixed! */ -# include <asm/u-boot-i386.h> -#endif /* CONFIG_I386 */ +#ifdef CONFIG_X86		/* x86 version to be fixed! */ +# include <asm/u-boot-x86.h> +#endif /* CONFIG_X86 */  #ifdef CONFIG_AUTO_COMPLETE  int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);  |