[Cogl] Fix build of cogl-texture-gl.c

Fan Chun-wei fanc999 at yahoo.com.tw
Wed Jul 24 02:52:45 PDT 2013


Hi,

I have updated cogl-texture-gl.c so that strings.h would not be 
unconditionally included, as it is not universally available.

With blessings, thank you!
-------------- next part --------------
From ea88f3714300026917545caef99e52b830baa639 Mon Sep 17 00:00:00 2001
From: Chun-wei Fan <fanchunwei at src.gnome.org>
Date: Wed, 24 Jul 2013 17:36:15 +0800
Subject: [PATCH 2/2] cogl-texture-gl.c: Don't include strings.h
 unconditionally

Use the HAVE_STRINGS_H check before we include strings.h, as it is not
universally available.
---
 cogl/driver/gl/cogl-texture-gl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cogl/driver/gl/cogl-texture-gl.c b/cogl/driver/gl/cogl-texture-gl.c
index a7dfc68..ccf526c 100644
--- a/cogl/driver/gl/cogl-texture-gl.c
+++ b/cogl/driver/gl/cogl-texture-gl.c
@@ -24,7 +24,9 @@
 #include "config.h"
 #endif
 
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
+#endif
 
 #include "cogl-context-private.h"
 #include "cogl-util-gl-private.h"
-- 
1.8.3.msysgit.0


More information about the Cogl mailing list