On Thu, Nov 27, 2014 at 12:51 PM, Maxim Uvarov <[email protected]>
wrote:

> To have compatibility with other compilers define custom
> booalen type for odp.
>
> Signed-off-by: Maxim Uvarov <[email protected]>
>

Reviewed-by: Bill Fischofer <[email protected]>


> ---
>  platform/linux-generic/include/api/odp_std_types.h | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/platform/linux-generic/include/api/odp_std_types.h
> b/platform/linux-generic/include/api/odp_std_types.h
> index b12a2f3..61255a6 100644
> --- a/platform/linux-generic/include/api/odp_std_types.h
> +++ b/platform/linux-generic/include/api/odp_std_types.h
> @@ -27,9 +27,11 @@ extern "C" {
>  #include <inttypes.h>
>  #include <limits.h>
>
> -
> -
> -
> +/** Use odp boolean type to have it well-defined and known size,
> +  * regardless which compiler is used as this facilities interoperability
> +  * between e.g. different compilers.
> +  */
> +typedef int odp_bool_t;
>
>  #ifdef __cplusplus
>  }
> --
> 1.8.5.1.163.gd7aced9
>
>
> _______________________________________________
> lng-odp mailing list
> [email protected]
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to