Make the pipe headers C++ friendly.
[mesa.git] / src / gallium / include / pipe / p_defines.h
index 0bf53ecb79d24756eb405bf4591342845004031d..d84ddbc27aca975dc267f6b4bcca5d9dbf9998bd 100644 (file)
 
 #include "p_format.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define PIPE_BLENDFACTOR_ONE                 0x1
 #define PIPE_BLENDFACTOR_SRC_COLOR           0x2
 #define PIPE_BLENDFACTOR_SRC_ALPHA           0x3
@@ -267,4 +271,8 @@ enum pipe_texture_target {
 #define PIPE_CAP_MAX_TEXTURE_LOD_BIAS    19
 #define PIPE_CAP_BITMAP_TEXCOORD_BIAS    20
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif