From patchwork Thu Nov 27 17:51:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 41632 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C7A61244C2 for ; Thu, 27 Nov 2014 17:52:08 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e53sf3453355eek.11 for ; Thu, 27 Nov 2014 09:52:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=LPYq7xUvYSotuSql6LxqmiFxZ4i0q0+RuIxRyDVAWQU=; b=QY9EkhkyDGOIdABOaI49NsoGOmS1aYwO0sXOrysCtnlyNAarAa321C7GTuEDz0IJNs pvKUELb0xqYufWYZvSGmkH6tMdZo4L+HfkbvyXRQynsdMtig6dEjoueGyjLx9B/op9Mt 3tm9redCulMTocdkbrSzTCml8U2Ig2cUlWRNW8dFH9ZsvDTaSduwNPEGIc3gSlNLeYGz DKEcG51mJ2DqVR2tdWhEOoi3R96+SsZnCPX+kOyXgGvg15QqwJg6YAwVD0X1v4mfIg04 PDqSYyWqC2LrxGIAsP9VrHfbKjXsLMrbiSxV6Z1l7kWPVdDSXtEhRLFHk1wvWf19FqK/ P0WA== X-Gm-Message-State: ALoCoQnpThuIEmwkF7e6ptVWYuezDUaPwEae3OmovPjgi7RSKpxST6bazShZ7ibxY8CUdJvn6bmA X-Received: by 10.180.94.3 with SMTP id cy3mr8831957wib.7.1417110727913; Thu, 27 Nov 2014 09:52:07 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.176 with SMTP id az16ls694820lab.87.gmail; Thu, 27 Nov 2014 09:52:07 -0800 (PST) X-Received: by 10.152.88.69 with SMTP id be5mr40529699lab.36.1417110727378; Thu, 27 Nov 2014 09:52:07 -0800 (PST) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id zm10si7851176lbb.125.2014.11.27.09.52.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 09:52:07 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id u10so4418205lbd.6 for ; Thu, 27 Nov 2014 09:52:07 -0800 (PST) X-Received: by 10.112.235.196 with SMTP id uo4mr39611282lbc.66.1417110726929; Thu, 27 Nov 2014 09:52:06 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp832645lbc; Thu, 27 Nov 2014 09:52:06 -0800 (PST) X-Received: by 10.224.45.65 with SMTP id d1mr56301459qaf.43.1417110725646; Thu, 27 Nov 2014 09:52:05 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 65si9223922qgt.47.2014.11.27.09.52.04 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 27 Nov 2014 09:52:05 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xu3EZ-0005hx-4H; Thu, 27 Nov 2014 17:52:03 +0000 Received: from mail-la0-f50.google.com ([209.85.215.50]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xu3EP-0005h9-Hi for lng-odp@lists.linaro.org; Thu, 27 Nov 2014 17:51:53 +0000 Received: by mail-la0-f50.google.com with SMTP id pn19so3736412lab.23 for ; Thu, 27 Nov 2014 09:51:47 -0800 (PST) X-Received: by 10.152.27.227 with SMTP id w3mr12254161lag.24.1417110707341; Thu, 27 Nov 2014 09:51:47 -0800 (PST) Received: from localhost.localdomain (broadband-46-188-125-99.2com.net. [46.188.125.99]) by mx.google.com with ESMTPSA id ed8sm2020693lbb.41.2014.11.27.09.51.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 09:51:46 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 27 Nov 2014 20:51:18 +0300 Message-Id: <1417110685-2931-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1417110685-2931-1-git-send-email-maxim.uvarov@linaro.org> References: <1417110685-2931-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 1/8] API: implement odp_bool type X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 To have compatibility with other compilers define custom booalen type for odp. Signed-off-by: Maxim Uvarov Reviewed-by: Bill Fischofer --- 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 #include - - - +/** 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 }