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



commit ff65144c84a16f9470d3f3931dc91cc9a6ef5938
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jul 24 17:36:15 2013 +0800

    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.
    
    Reviewed-by: Robert Bragg <robert linux intel com>

 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"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]