From: Somin Kim Date: Wed, 5 Jul 2017 07:28:55 +0000 (+0900) Subject: Remove redefinition warning of context X-Git-Tag: submit/tizen/20170710.122951^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=132570bea499789370bc8a192bc06d18615ab490;p=platform%2Fcore%2Fcontext%2Fcontext-provider.git Remove redefinition warning of context - IS_FAILED defined in context-common has changed, and it caused redefinition warning in context. So changed definition of legacy IS_FAILED as same as IS_FAILED of context-common. Change-Id: I0975519c4b403cec575b0bf82e91e3eb1ed0f364 Signed-off-by: Somin Kim --- diff --git a/common/include/Types.h b/common/include/Types.h index 054639b..ca056e0 100644 --- a/common/include/Types.h +++ b/common/include/Types.h @@ -61,7 +61,7 @@ #define IF_FAIL_CATCH(cond) \ do { if (!(cond)) { goto CATCH; } } while (0) -#define IS_FAILED(X) ((X) != ERR_NONE) +#define IS_FAILED(X) ((X) < 0) #define ASSERT_ALLOC(X) IF_FAIL_RETURN_TAG(X, ERR_OUT_OF_MEMORY, _E, "Memory allocation failed") #define ASSERT_NOT_NULL(X) IF_FAIL_RETURN_TAG(X, ERR_INVALID_PARAMETER, _E, "Parameter null")