Commit 3f7206dc authored by Måns Rullgård's avatar Måns Rullgård

fix compilation on FreeBSD (from Loren Merritt (thanks to Igla))


git-svn-id: svn://svn.videolan.org/x264/trunk@51 df754926-b1dd-0310-bc7b-ec298dee348c
parent 48937c64
......@@ -35,7 +35,7 @@ SOURCES_ALTIVEC = core/ppc/mc.c core/ppc/pixel.c ;
SOURCES_X264 = $(SOURCES_C) ;
if $(OSPLAT) = X86
{
DEFINES += HAVE_MALLOC_H HAVE_MMXEXT HAVE_SSE2 ;
DEFINES += HAVE_MMXEXT HAVE_SSE2 ;
SOURCES_X264 += $(SOURCES_MMX) ;
SOURCES_X264 += $(SOURCES_X86) ;
ASFLAGS = -f elf ;
......@@ -44,6 +44,10 @@ if $(OSPLAT) = X86
{
DEFINES += HAVE_STDINT_H ;
}
if $(OS) != FREEBSD
{
DEFINES += HAVE_MALLOC_H ;
}
# Don't ask
NOARUPDATE = false ;
......
......@@ -3,6 +3,7 @@
# SRCS: core/ppc/mc.c core/ppc/pixel.c
# Defines: HAVE_PPC
# CFLAGS: -faltivec
# For FreeBSD, remove -DHAVE_MALLOC_H and add -DSYS_FREEBSD
#
PFLAGS=-DARCH_X86 -DHAVE_MMXEXT -DHAVE_SSE2
CC=gcc
......
......@@ -40,6 +40,9 @@
#ifdef SYS_MACOSX
#define exp2f(x) ( (float) exp2( (x) ) )
#endif
#ifdef SYS_FREEBSD
#define exp2f(x) powf( 2, (x) )
#endif
typedef struct
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment