[Cogl] [PATCH] cogl-texture-gl.c: Don't include strings.h unconditionally

Fan Chun-wei fanc999 at yahoo.com.tw
Fri Mar 1 01:19:13 PST 2013


strings.h is a system header that is not universally available, so check
for its existance via config.h first
---
  cogl/driver/gl/cogl-texture-gl.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

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.7.7.1.msysgit.0


More information about the Cogl mailing list