[PATCH 1/6] DirectFB integration

Denis Oliver Kropp dfbdok at gmail.com
Fri Oct 25 00:10:50 CEST 2013


gl-renderer: Add protection against multiple includes of
 header.

---
 src/gl-renderer.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/gl-renderer.h b/src/gl-renderer.h
index 0342134..1f41c9f 100644
--- a/src/gl-renderer.h
+++ b/src/gl-renderer.h
@@ -20,6 +20,9 @@
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */

+#ifndef __WESTON_GL_RENDERER_H__
+#define __WESTON_GL_RENDERER_H__
+
 #include "config.h"

 #include "compositor.h"
@@ -64,4 +67,7 @@ struct gl_renderer_interface {
  void (*print_egl_error_state)(void);
 };

-struct gl_renderer_interface gl_renderer_interface;
+extern struct gl_renderer_interface gl_renderer_interface;
+
+#endif
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20131025/c239ac79/attachment.html>


More information about the wayland-devel mailing list