[Piglit] [PATCH v3 1/5] Make it possible to include piglit-util.h from C++ programs

Paul Berry stereotype441 at gmail.com
Thu Oct 13 13:45:33 PDT 2011


---
 tests/util/piglit-util.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h
index 9c3858b..a12a234 100644
--- a/tests/util/piglit-util.h
+++ b/tests/util/piglit-util.h
@@ -23,6 +23,10 @@
 
 #pragma once
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "config.h"
 
 #if defined(_WIN32)
@@ -217,3 +221,7 @@ extern void piglit_set_rlimit(unsigned long lim);
 
 static const GLint PIGLIT_ATTRIB_POS = 0;
 static const GLint PIGLIT_ATTRIB_TEX = 1;
+
+#ifdef __cplusplus
+} /* end extern "C" */
+#endif
-- 
1.7.6.4



More information about the Piglit mailing list