summaryrefslogtreecommitdiff
path: root/src/gbm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gbm')
-rw-r--r--src/gbm/main/gbm.h9
1 files changed, 9 insertions, 0 deletions
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 <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