mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00: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:
parent
4a8a46fafd
commit
e98a6e2bff
2
configure
vendored
2
configure
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user