All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tapani Pälli" <tapani.palli@intel.com>
To: dri-devel@lists.freedesktop.org
Subject: [PATCH] intel: wrap intel_bufmgr.h C code for C++ compilation/linking
Date: Wed,  1 Jul 2015 14:37:19 +0300	[thread overview]
Message-ID: <1435750639-6090-1-git-send-email-tapani.palli@intel.com> (raw)

(We need this include in porting changes for the OpenGL ES
conformance suite.)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
---
 intel/intel_bufmgr.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/intel/intel_bufmgr.h b/intel/intel_bufmgr.h
index 285919e..f061454 100644
--- a/intel/intel_bufmgr.h
+++ b/intel/intel_bufmgr.h
@@ -38,6 +38,10 @@
 #include <stdint.h>
 #include <stdio.h>
 
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
 struct drm_clip_rect;
 
 typedef struct _drm_intel_bufmgr drm_intel_bufmgr;
@@ -308,4 +312,8 @@ int drm_intel_get_eu_total(int fd, unsigned int *eu_total);
 
 /** @{ */
 
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
 #endif /* INTEL_BUFMGR_H */
-- 
2.1.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2015-07-01 11:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-01 11:37 Tapani Pälli [this message]
2015-07-03 15:44 ` [PATCH] intel: wrap intel_bufmgr.h C code for C++ compilation/linking Emil Velikov
2015-07-27  9:59   ` Tapani Pälli
2015-07-28 15:25     ` Emil Velikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435750639-6090-1-git-send-email-tapani.palli@intel.com \
    --to=tapani.palli@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.