On 11/26/2014 08:31 PM, Maxim Uvarov wrote:
To have compatibility with other compilers define custom
booalen type for odp.

Signed-off-by: Maxim Uvarov <maxim.uva...@linaro.org>
---
  platform/linux-generic/include/api/odp_std_types.h | 7 ++++---
  1 file changed, 4 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..e1f3971 100644
--- a/platform/linux-generic/include/api/odp_std_types.h
+++ b/platform/linux-generic/include/api/odp_std_types.h
@@ -27,9 +27,10 @@ extern "C" {
  #include <inttypes.h>
  #include <limits.h>
-
-
-
+/** odp_bool type used for compatibility of boolean type in
+ *  different compilers.
+ */
+typedef uint32_t odp_bool;
odp_bool_t is better.

Can this be enum? I don't remember why we said that int is better then enum?

enum odp_bool_t {
    ODP_FALSE = 0,
    ODP_TRUE = 1,
}


Maxim.


#ifdef __cplusplus
  }


_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to