From patchwork Fri Aug 7 07:37:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Tapani_P=C3=A4lli?= X-Patchwork-Id: 6965811 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8B06C9F38B for ; Fri, 7 Aug 2015 07:38:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DDDB820395 for ; Fri, 7 Aug 2015 07:38:06 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C283F2034E for ; Fri, 7 Aug 2015 07:38:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 49B3F6E090; Fri, 7 Aug 2015 00:38:04 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id C297A6E090 for ; Fri, 7 Aug 2015 00:38:02 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 07 Aug 2015 00:38:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,628,1432623600"; d="scan'208";a="537602223" Received: from unknown (HELO localhost.ger.corp.intel.com) ([10.252.12.43]) by FMSMGA003.fm.intel.com with ESMTP; 07 Aug 2015 00:38:01 -0700 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] remove usage of 'c_plusplus' preprocessor macro Date: Fri, 7 Aug 2015 10:37:56 +0300 Message-Id: <1438933078-23480-1-git-send-email-tapani.palli@intel.com> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use only __cplusplus which is supported by the C++ standard. Signed-off-by: Tapani Pälli --- libkms/libkms.h | 4 ++-- xf86drm.h | 4 ++-- xf86drmMode.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libkms/libkms.h b/libkms/libkms.h index c00b159..930a2bf 100644 --- a/libkms/libkms.h +++ b/libkms/libkms.h @@ -29,7 +29,7 @@ #ifndef _LIBKMS_H_ #define _LIBKMS_H_ -#if defined(__cplusplus) || defined(c_plusplus) +#if defined(__cplusplus) extern "C" { #endif @@ -75,7 +75,7 @@ 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) +#if defined(__cplusplus) }; #endif diff --git a/xf86drm.h b/xf86drm.h index e3a19dc..360e04a 100644 --- a/xf86drm.h +++ b/xf86drm.h @@ -39,7 +39,7 @@ #include #include -#if defined(__cplusplus) || defined(c_plusplus) +#if defined(__cplusplus) extern "C" { #endif @@ -759,7 +759,7 @@ extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle); extern char *drmGetPrimaryDeviceNameFromFd(int fd); extern char *drmGetRenderDeviceNameFromFd(int fd); -#if defined(__cplusplus) || defined(c_plusplus) +#if defined(__cplusplus) } #endif diff --git a/xf86drmMode.h b/xf86drmMode.h index 1c10023..4de7bbb 100644 --- a/xf86drmMode.h +++ b/xf86drmMode.h @@ -36,7 +36,7 @@ #ifndef _XF86DRMMODE_H_ #define _XF86DRMMODE_H_ -#if defined(__cplusplus) || defined(c_plusplus) +#if defined(__cplusplus) extern "C" { #endif @@ -508,7 +508,7 @@ extern int drmModeCreatePropertyBlob(int fd, const void *data, size_t size, extern int drmModeDestroyPropertyBlob(int fd, uint32_t id); -#if defined(__cplusplus) || defined(c_plusplus) +#if defined(__cplusplus) } #endif