From 496bf3822a724127b2632596dc45648fdeda0afb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B8rgen=20Lind?= Date: Tue, 19 Jul 2011 22:52:20 +0200 Subject: [PATCH] Make it possible to use gbm with c++ NOTE: This is a candiate for 7.11 --- src/gbm/main/gbm.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h index d79a03e4b3f..05d2292dc75 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 @@ -97,4 +102,8 @@ gbm_bo_get_handle(struct gbm_bo *bo); void gbm_bo_destroy(struct gbm_bo *bo); +#ifdef __cplusplus +} +#endif + #endif -- 2.30.2