Message ID | 1417110685-2931-2-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | Accepted |
Commit | 2ac48e3216f3118e51b2d4f2e42f274a4f17fca1 |
Headers | show |
On Thu, Nov 27, 2014 at 12:51 PM, Maxim Uvarov <maxim.uvarov@linaro.org> wrote: > To have compatibility with other compilers define custom > booalen type for odp. > > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> > Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> > --- > 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 > lng-odp@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/lng-odp >
Merged this boolean patch. Maxim. On 11/28/2014 05:50 AM, Bill Fischofer wrote: > > > On Thu, Nov 27, 2014 at 12:51 PM, Maxim Uvarov > <maxim.uvarov@linaro.org <mailto:maxim.uvarov@linaro.org>> wrote: > > To have compatibility with other compilers define custom > booalen type for odp. > > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org > <mailto:maxim.uvarov@linaro.org>> > > > Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org > <mailto:bill.fischofer@linaro.org>> > > --- > 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 > lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org> > http://lists.linaro.org/mailman/listinfo/lng-odp > >
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 }
To have compatibility with other compilers define custom booalen type for odp. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- platform/linux-generic/include/api/odp_std_types.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)