On 07.03.2017 14:52, Dmitry Eremin-Solenikov wrote:
> diff --git a/include/odp/api/spec/hints.h b/include/odp/api/spec/hints.h
> index 82400f07..3b70db6f 100644
> --- a/include/odp/api/spec/hints.h
> +++ b/include/odp/api/spec/hints.h
> @@ -54,7 +54,20 @@ extern "C" {
>  /**
>   * Indicate deprecated variables, functions or types
>   */
> +#ifdef ODP_ALLOW_DEPRECATED

It should be #ifndef obviously, forgot to change.

>  #define ODP_DEPRECATED __attribute__((__deprecated__))
> +#else
> +#define ODP_DEPRECATED
> +#endif
> +
> +/**
> + * Indicate deprecated field, bitfield or enum value
> + */
> +#ifndef ODP_ALLOW_DEPRECATED
> +#define ODP_DEPRECATED_FIELD(x) __odp_deprecated_ ## x
> +#else
> +#define ODP_DEPRECATED_FIELD(x) x
> +#endif


-- 
With best wishes
Dmitry

Reply via email to