From patchwork Thu Nov 1 09:40:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1684191 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 92023E003B for ; Thu, 1 Nov 2012 09:52:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B0B5A0ECA for ; Thu, 1 Nov 2012 02:52:51 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [95.142.166.194]) by gabe.freedesktop.org (Postfix) with ESMTP id 479D89EAF1 for ; Thu, 1 Nov 2012 02:39:42 -0700 (PDT) Received: from localhost.localdomain (unknown [91.224.175.20]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4A3A2359DB; Thu, 1 Nov 2012 10:39:41 +0100 (CET) From: Laurent Pinchart To: dri-devel@lists.freedesktop.org Subject: [PATCH] kms: Make libkms.h usable in C++ Date: Thu, 1 Nov 2012 10:40:30 +0100 Message-Id: <1351762830-8098-1-git-send-email-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 1.7.8.6 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Wrap the header in extern "C" { ... };. Signed-off-by: Laurent Pinchart Reviewed-by: Jakob Bornecrantz --- libkms/libkms.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/libkms/libkms.h b/libkms/libkms.h index 4664442..c00b159 100644 --- a/libkms/libkms.h +++ b/libkms/libkms.h @@ -29,6 +29,10 @@ #ifndef _LIBKMS_H_ #define _LIBKMS_H_ +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + /** * \file * @@ -71,4 +75,8 @@ int kms_bo_map(struct kms_bo *bo, void **out); int kms_bo_unmap(struct kms_bo *bo); int kms_bo_destroy(struct kms_bo **bo); +#if defined(__cplusplus) || defined(c_plusplus) +}; +#endif + #endif