mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
Convert HAVE_MALLOC_H into a 0/1 definition, fixes the warning:
mem.c:32:5: warning: "HAVE_MALLOC_H" is not defined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28629 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e98a6e2bff
commit
be8c67909b
4
configure
vendored
4
configure
vendored
@ -3149,10 +3149,10 @@ cc_check && _malloc=yes
|
||||
if test "$_malloc" = yes ; then
|
||||
def_malloc_h='#define HAVE_MALLOC_H 1'
|
||||
else
|
||||
def_malloc_h='#undef HAVE_MALLOC_H'
|
||||
def_malloc_h='#define HAVE_MALLOC_H 0'
|
||||
fi
|
||||
# malloc.h emits a warning in FreeBSD and OpenBSD
|
||||
freebsd || openbsd || dragonfly && def_malloc_h='#undef HAVE_MALLOC_H'
|
||||
freebsd || openbsd || dragonfly && def_malloc_h='#define HAVE_MALLOC_H 0'
|
||||
echores "$_malloc"
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
CpuCaps gCpuCaps;
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include "libaf/af.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "mp_msg.h"
|
||||
#include "help_mp.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "mp_msg.h"
|
||||
#include "cpudetect.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include "mp_msg.h"
|
||||
#include "cpudetect.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -65,7 +65,7 @@ Known Issues:
|
||||
#undef free
|
||||
#undef malloc
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "mp_msg.h"
|
||||
#include "cpudetect.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "mp_msg.h"
|
||||
#include "cpudetect.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "mp_msg.h"
|
||||
#include "cpudetect.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "libavcodec/avcodec.h"
|
||||
#include "libavcodec/eval.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
#undef free
|
||||
#undef malloc
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "mp_msg.h"
|
||||
#include "cpudetect.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
#include "libavcodec/avcodec.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
#include "mp_msg.h"
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "config.h"
|
||||
#include "mp_msg.h"
|
||||
#include "help_mp.h"
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include "fastmemcpy.h"
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "help_mp.h"
|
||||
#include "gtf.h"
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "debug.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "config.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
|
@ -53,7 +53,7 @@ for DLL to know too much about its environment.
|
||||
#include <ctype.h>
|
||||
#include <pthread.h>
|
||||
#include <errno.h>
|
||||
#ifdef HAVE_MALLOC_H
|
||||
#if HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
Loading…
Reference in New Issue
Block a user