Mesa (7.11): Make it possible to use gbm with c++
Ian Romanick
idr at kemper.freedesktop.org
Wed Jul 20 19:19:59 UTC 2011
Module: Mesa
Branch: 7.11
Commit: 62b282e7497bc368b4bcc440de7524a15971291c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=62b282e7497bc368b4bcc440de7524a15971291c
Author: Jørgen Lind <jorgen.lind at nokia.com>
Date: Tue Jul 19 22:52:20 2011 +0200
Make it possible to use gbm with c++
NOTE: This is a candiate for 7.11
(cherry picked from commit 496bf3822a724127b2632596dc45648fdeda0afb)
---
src/gbm/main/gbm.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h
index d79a03e..05d2292 100644
--- a/src/gbm/main/gbm.h
+++ b/src/gbm/main/gbm.h
@@ -28,6 +28,11 @@
#ifndef _GBM_H_
#define _GBM_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define __GBM__ 1
#include <stdint.h>
@@ -97,4 +102,8 @@ gbm_bo_get_handle(struct gbm_bo *bo);
void
gbm_bo_destroy(struct gbm_bo *bo);
+#ifdef __cplusplus
+}
+#endif
+
#endif
More information about the mesa-commit
mailing list