Remove redefinition warning of context 07/137307/1 accepted/tizen_4.0_unified accepted/tizen_unified tizen tizen_4.0 accepted/tizen/4.0/unified/20170816.012554 accepted/tizen/4.0/unified/20170816.015340 accepted/tizen/4.0/unified/20170828.223447 accepted/tizen/unified/20170711.180836 submit/tizen/20170710.122951 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100003 submit/tizen_4.0_unified/20170814.115522
authorSomin Kim <somin926.kim@samsung.com>
Wed, 5 Jul 2017 07:28:55 +0000 (16:28 +0900)
committerSomin Kim <somin926.kim@samsung.com>
Wed, 5 Jul 2017 07:28:55 +0000 (16:28 +0900)
- 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 <somin926.kim@samsung.com>
common/include/Types.h

index 054639b..ca056e0 100644 (file)
@@ -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")