1
mirror of https://github.com/mpv-player/mpv synced 2024-07-11 23:47:56 +02:00

Convert HAVE_MEMALIGN into a 0/1 definition, fixes the warning:

mem.c:67:7: warning: "HAVE_MEMALIGN" is not defined


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28628 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2009-02-17 10:41:13 +00:00
parent 4a8a46fafd
commit e98a6e2bff
3 changed files with 4 additions and 3 deletions

2
configure vendored
View File

@ -3168,7 +3168,7 @@ cc_check && _memalign=yes
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

View File

@ -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

View File

@ -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