projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3974dc
)
st/egl: Add extern "C" wrapper to native.h.
author
Chia-I Wu
<olv@lunarg.com>
Mon, 11 Oct 2010 08:29:43 +0000
(16:29 +0800)
committer
Chia-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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/egl/common/native.h
b/src/gallium/state_trackers/egl/common/native.h
index 07ff87a554dba22562c8cbf2e6b20ec13b11d8ec..5ee7956ac7320771e2b8b20c35108b3bf0f350e4 100644
(file)
--- a/
src/gallium/state_trackers/egl/common/native.h
+++ b/
src/gallium/state_trackers/egl/common/native.h
@@
-34,6
+34,10
@@
#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_ */