]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
zlib.c: avoid build conflicts for cradle board
authorWolfgang Denk <wd@denx.de>
Sat, 5 Dec 2009 23:53:18 +0000 (00:53 +0100)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Dec 2009 20:50:18 +0000 (21:50 +0100)
Commit dce3d79710 updated the zlib code to v0.95; this caused
conflicts when building for the "cradle" board, because the (pretty
generic) preprocessor variable "OFF" was used in multiple files.
Make sure to avoid further conflicts by #undef'ing it in zlib.c
before redefining it.

Signed-off-by: Wolfgang Denk <wd@denx.de>
cc: Giuseppe Condorelli <giuseppe.condorelli@st.com>
cc: Angelo Castello <angelo.castello@st.com>
cc: Alessandro Rubini <rubini-list@gnudd.com>

lib_generic/zlib.c

index 8fe3bd0dd12363d8b4ce79c93ce111fe40b4ccb0..ef1fa22806a60bf4fd62adbf9d9f8e04a0987d11 100644 (file)
@@ -28,6 +28,8 @@
 
 #include "u-boot/zlib.h"
 #include <common.h>
+#undef OFF                             /* avoid conflicts */
+
 /* To avoid a build time warning */
 #ifdef STDC
 #include <malloc.h>