From: John Koleszar Date: Wed, 17 Nov 2010 14:08:47 +0000 (-0500) Subject: Disable compile warning for ERROR macro X-Git-Tag: 1.0_branch~782^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79e2b1f39b9bb79a64543935e3616bf8abf7dcd8;p=profile%2Fivi%2Flibvpx.git Disable compile warning for ERROR macro The ERROR macro collides wiith the MS SDK on Windows. Since we're not making any win32 calls in this function, just #undef it first to take ownership. Change-Id: Ic18c60dfa3a33c52e6c49d3f4f8d3e7e3ac3341d --- diff --git a/vp8/vp8_cx_iface.c b/vp8/vp8_cx_iface.c index 6a28720..a77a9b2 100644 --- a/vp8/vp8_cx_iface.c +++ b/vp8/vp8_cx_iface.c @@ -104,6 +104,7 @@ update_error_state(vpx_codec_alg_priv_t *ctx, } +#undef ERROR #define ERROR(str) do {\ ctx->base.err_detail = str;\ return VPX_CODEC_INVALID_PARAM;\