st/egl: Add extern "C" wrapper to native.h.
authorChia-I Wu <olv@lunarg.com>
Mon, 11 Oct 2010 08:29:43 +0000 (16:29 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 3 Nov 2010 09:47:08 +0000 (17:47 +0800)
This allows a backend to be written in C++.

src/gallium/state_trackers/egl/common/native.h

index 07ff87a554dba22562c8cbf2e6b20ec13b11d8ec..5ee7956ac7320771e2b8b20c35108b3bf0f350e4 100644 (file)
 #include "pipe/p_state.h"
 #include "state_tracker/sw_winsys.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "native_modeset.h"
 
 /**
@@ -237,4 +241,8 @@ native_get_drm_platform(void);
 const struct native_platform *
 native_get_fbdev_platform(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _NATIVE_H_ */