vlc | branch: master | Rafaël Carré <[email protected]> | Mon Nov 28 21:59:12 
2011 -0500| [e982db92e1cf61970d7057c7f651c6f07d17d2b2] | committer: Rafaël Carré

(v)asprintf: define HAVE_(V)ASPRINTF if found

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e982db92e1cf61970d7057c7f651c6f07d17d2b2
---

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index a8b9d8b..a0bfd9f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -491,14 +491,14 @@ AC_LINK_IFELSE([
         char *c;
         if (asprintf(&c, "%s %d", "string", 1) == -1)
             c = NULL;
-    ])],,[AC_LIBOBJ([asprintf])])
+    ])],[AC_DEFINE([HAVE_ASPRINTF],[1],[Define to 1 if you have asprintf 
function])],[AC_LIBOBJ([asprintf])])
 AC_LINK_IFELSE([
     AC_LANG_PROGRAM([#include <stdio.h>], [
         char *c;
         va_list ap;
         if (vasprintf(&c, "%s %d", ap) == -1)
             c = NULL;
-    ])],,[AC_LIBOBJ([vasprintf])])
+    ])],[AC_DEFINE([HAVE_VASPRINTF],[1],[Define to 1 if you have asprintf 
function])],[AC_LIBOBJ([vasprintf])])
 
 # Windows CE does not have strcoll()
 AC_FUNC_STRCOLL

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to