Make it possible to use gbm with c++
authorJørgen Lind <jorgen.lind@nokia.com>
Tue, 19 Jul 2011 20:52:20 +0000 (22:52 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 19 Jul 2011 23:30:07 +0000 (16:30 -0700)
NOTE: This is a candiate for 7.11

src/gbm/main/gbm.h

index d79a03e4b3ff477a64475dadfbfadd2ee4d6a62b..05d2292dc75e9139ce570bbfc54943ab72f003fd 100644 (file)
 #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