From a9f99ab44b473fb394169ba365f8b4380f981584 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Sun, 6 Dec 2009 00:53:18 +0100 Subject: [PATCH] zlib.c: avoid build conflicts for cradle board 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 cc: Giuseppe Condorelli cc: Angelo Castello cc: Alessandro Rubini --- lib_generic/zlib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib_generic/zlib.c b/lib_generic/zlib.c index 8fe3bd0dd1..ef1fa22806 100644 --- a/lib_generic/zlib.c +++ b/lib_generic/zlib.c @@ -28,6 +28,8 @@ #include "u-boot/zlib.h" #include +#undef OFF /* avoid conflicts */ + /* To avoid a build time warning */ #ifdef STDC #include -- 2.25.1