[gnome-games/gsoc-seed-games] Include necessary headers in c99 macro



commit f56b3332d1dfca58300b083b2d360ef1f3d2d016
Author: Tobias Mueller <tobiasmue gnome org>
Date:   Fri Jun 19 01:01:12 2009 +0200

    Include necessary headers in c99 macro
    
    stdio and string are needed to compile c99 check with strlen and
    snprintf.
    Fixes bug 586323.

 m4/c99.m4 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/m4/c99.m4 b/m4/c99.m4
index d1e8796..50bbe81 100644
--- a/m4/c99.m4
+++ b/m4/c99.m4
@@ -35,7 +35,8 @@ AC_DEFUN([AC_C99_VARIABLE_ARRAYS],
   AC_CACHE_CHECK([for C99 variable arrays],
     [ac_cv_c99_variable_arrays],
     [AC_TRY_COMPILE(
-        [],
+        [#include <string.h>
+         #include <stdio.h>],
         [char *s1 = "foo", *s2 = "bar";
          char s3[strlen(s1) + strlen(s2) + 1];
          sprintf(s3, "%s%s", s1, s2);],



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