diff --git a/serializer/inc/methodreturn.h b/serializer/inc/methodreturn.h index 8a69c49379..8b7423d813 100644 --- a/serializer/inc/methodreturn.h +++ b/serializer/inc/methodreturn.h @@ -8,13 +8,10 @@ typedef struct METHODRETURN_HANDLE_DATA_TAG* METHODRETURN_HANDLE; #include "azure_macro_utils/macro_utils.h" -/*the following macro expands to "const" if X is defined. If X is not defined, then it expands to nothing*/ -#define CONST_BY_COMPILATION_UNIT(X) MU_IF(MU_COUNT_ARG(X),const,) - typedef struct METHODRETURN_DATA_TAG { - CONST_BY_COMPILATION_UNIT(METHODRETURN_C) int statusCode; - CONST_BY_COMPILATION_UNIT(METHODRETURN_C) char* jsonValue; + int statusCode; + char* jsonValue; }METHODRETURN_DATA; #include "umock_c/umock_c_prod.h" diff --git a/serializer/src/methodreturn.c b/serializer/src/methodreturn.c index 949488e172..d3bb6832f6 100644 --- a/serializer/src/methodreturn.c +++ b/serializer/src/methodreturn.c @@ -10,9 +10,7 @@ #include "azure_c_shared_utility/strings.h" #include "parson.h" -#define METHODRETURN_C #include "methodreturn.h" -#undef METHODRETURN_C typedef struct METHODRETURN_HANDLE_DATA_TAG {