summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_mipmap_tree.h
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2012-04-27 07:40:34 -0700
committerPaul Berry <stereotype441@gmail.com>2012-05-10 10:30:00 -0700
commit434fc8bde41f07687ad8941ceba03c4b3e0e75bb (patch)
tree4ef8732c92f158d0a9f4f2fe0955e01f95ab31d7 /src/mesa/drivers/dri/intel/intel_mipmap_tree.h
parentb0bb125736fd29dbad6cfa8d4de0c44eaf5e28ad (diff)
downloadexternal_mesa3d-434fc8bde41f07687ad8941ceba03c4b3e0e75bb.zip
external_mesa3d-434fc8bde41f07687ad8941ceba03c4b3e0e75bb.tar.gz
external_mesa3d-434fc8bde41f07687ad8941ceba03c4b3e0e75bb.tar.bz2
intel: Add extern "C" declarations to headers
These declarations are necessary to allow C++ code to call C code without causing unresolved symbols (which would make the driver fail to load). Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_mipmap_tree.h')
-rw-r--r--src/mesa/drivers/dri/intel/intel_mipmap_tree.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h
index 9082864..0886c95 100644
--- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h
+++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h
@@ -33,6 +33,10 @@
#include "intel_regions.h"
#include "intel_resolve_map.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* A layer on top of the intel_regions code which adds:
*
* - Code to size and layout a region to hold a set of mipmaps.
@@ -413,4 +417,8 @@ intel_miptree_unmap(struct intel_context *intel,
unsigned int level,
unsigned int slice);
+#ifdef __cplusplus
+}
+#endif
+
#endif