laruence                                 Thu, 15 Sep 2011 07:09:43 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=316807

Log:
Fix warning "implicit declaration of function `vasprintf'"
If There is a better fix, plz fixme.

Changed paths:
    U   php/php-src/branches/PHP_5_4/ext/fileinfo/libmagic/print.c
    U   php/php-src/branches/PHP_5_4/main/snprintf.c
    U   php/php-src/trunk/ext/fileinfo/libmagic/print.c
    U   php/php-src/trunk/main/snprintf.c

Modified: php/php-src/branches/PHP_5_4/ext/fileinfo/libmagic/print.c
===================================================================
--- php/php-src/branches/PHP_5_4/ext/fileinfo/libmagic/print.c  2011-09-15 
06:47:43 UTC (rev 316806)
+++ php/php-src/branches/PHP_5_4/ext/fileinfo/libmagic/print.c  2011-09-15 
07:09:43 UTC (rev 316807)
@@ -29,8 +29,8 @@
  * print.c - debugging printout routines
  */

+#define _GNU_SOURCE
 #include "php.h"
-#include "main/snprintf.h"

 #include "file.h"

@@ -38,6 +38,7 @@
 FILE_RCSID("@(#)$File: print.c,v 1.66 2009/02/03 20:27:51 christos Exp $")
 #endif  /* lint */

+#include <stdio.h>
 #include <string.h>
 #include <stdarg.h>
 #include <stdlib.h>

Modified: php/php-src/branches/PHP_5_4/main/snprintf.c
===================================================================
--- php/php-src/branches/PHP_5_4/main/snprintf.c        2011-09-15 06:47:43 UTC 
(rev 316806)
+++ php/php-src/branches/PHP_5_4/main/snprintf.c        2011-09-15 07:09:43 UTC 
(rev 316807)
@@ -18,7 +18,7 @@

 /* $Id$ */

-
+#define _GNU_SOURCE
 #include "php.h"

 #include <zend_strtod.h>

Modified: php/php-src/trunk/ext/fileinfo/libmagic/print.c
===================================================================
--- php/php-src/trunk/ext/fileinfo/libmagic/print.c     2011-09-15 06:47:43 UTC 
(rev 316806)
+++ php/php-src/trunk/ext/fileinfo/libmagic/print.c     2011-09-15 07:09:43 UTC 
(rev 316807)
@@ -28,9 +28,8 @@
 /*
  * print.c - debugging printout routines
  */
-
+#define _GNU_SOURCE
 #include "php.h"
-#include "main/snprintf.h"

 #include "file.h"

@@ -38,6 +37,7 @@
 FILE_RCSID("@(#)$File: print.c,v 1.66 2009/02/03 20:27:51 christos Exp $")
 #endif  /* lint */

+#include <stdio.h>
 #include <string.h>
 #include <stdarg.h>
 #include <stdlib.h>

Modified: php/php-src/trunk/main/snprintf.c
===================================================================
--- php/php-src/trunk/main/snprintf.c   2011-09-15 06:47:43 UTC (rev 316806)
+++ php/php-src/trunk/main/snprintf.c   2011-09-15 07:09:43 UTC (rev 316807)
@@ -18,7 +18,7 @@

 /* $Id$ */

-
+#define _GNU_SOURCE
 #include "php.h"

 #include <zend_strtod.h>

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to