summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/enums.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2014-12-15 16:36:27 -0700
committerBrian Paul <brianp@vmware.com>2014-12-16 07:52:41 -0700
commit3ebc135b4ed261cb7959dd7429773b25ce545102 (patch)
treec5ea5bf801671ea249abfa0dcf6266d1b2f713bb /src/mesa/main/enums.h
parent4b342fbbb739b4266ec6bdaa59d1807b75199061 (diff)
downloadexternal_mesa3d-3ebc135b4ed261cb7959dd7429773b25ce545102.zip
external_mesa3d-3ebc135b4ed261cb7959dd7429773b25ce545102.tar.gz
external_mesa3d-3ebc135b4ed261cb7959dd7429773b25ce545102.tar.bz2
mesa: put extern "C" in header files
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/mesa/main/enums.h')
-rw-r--r--src/mesa/main/enums.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/enums.h b/src/mesa/main/enums.h
index 36c053d..66bdd53 100644
--- a/src/mesa/main/enums.h
+++ b/src/mesa/main/enums.h
@@ -37,6 +37,11 @@
#define _ENUMS_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
extern const char *_mesa_lookup_enum_by_nr( int nr );
/* Get the name of an enum given that it is a primitive type. Avoids
@@ -44,4 +49,10 @@ extern const char *_mesa_lookup_enum_by_nr( int nr );
*/
const char *_mesa_lookup_prim_by_nr( unsigned nr );
+
+#ifdef __cplusplus
+}
+#endif
+
+
#endif