changeset 28593:94d9e6403ee4

Convert HAVE_MEMALIGN into a 0/1 definition, fixes the warning: mem.c:67:7: warning: "HAVE_MEMALIGN" is not defined
author diego
date Tue, 17 Feb 2009 10:41:13 +0000
parents d9c223f0f7ef
children df67d03dde3b
files configure liba52/liba52_changes.diff liba52/parse.c
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Feb 17 10:13:08 2009 +0000
+++ b/configure	Tue Feb 17 10:41:13 2009 +0000
@@ -3168,7 +3168,7 @@
 if test "$_memalign" = yes ; then
   def_memalign='#define HAVE_MEMALIGN 1'
 else
-  def_memalign='#undef HAVE_MEMALIGN'
+  def_memalign='#define HAVE_MEMALIGN 0'
   def_map_memalign='#define memalign(a,b) malloc(b)'
   darwin || def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1'
 fi
--- a/liba52/liba52_changes.diff	Tue Feb 17 10:13:08 2009 +0000
+++ b/liba52/liba52_changes.diff	Tue Feb 17 10:41:13 2009 +0000
@@ -2354,7 +2354,8 @@
 +#include "mm_accel.h"
 +#include "libavutil/avutil.h"
  
- #ifdef HAVE_MEMALIGN
+-#ifdef HAVE_MEMALIGN
++#if HAVE_MEMALIGN
  /* some systems have memalign() but no declaration for it */
  void * memalign (size_t align, size_t size);
 -#else
--- a/liba52/parse.c	Tue Feb 17 10:13:08 2009 +0000
+++ b/liba52/parse.c	Tue Feb 17 10:41:13 2009 +0000
@@ -39,7 +39,7 @@
 #include "mm_accel.h"
 #include "libavutil/avutil.h"
 
-#ifdef HAVE_MEMALIGN
+#if HAVE_MEMALIGN
 /* some systems have memalign() but no declaration for it */
 void * memalign (size_t align, size_t size);
 #endif