1
mirror of https://code.videolan.org/videolan/vlc synced 2024-08-06 16:44:19 +02:00

* powf -> pow :(

This commit is contained in:
Derk-Jan Hartman 2005-07-01 20:27:33 +00:00
parent 6db8875a09
commit 60b3038b0a

View File

@ -40,8 +40,9 @@ diff -ruN x264.orig/encoder/ratecontrol.c x264/encoder/ratecontrol.c
#include "ratecontrol.h"
-#if defined(SYS_FREEBSD) || defined(SYS_BEOS)
-#define exp2f(x) powf( 2, (x) )
+#if defined(SYS_FREEBSD) || defined(SYS_BEOS) || defined(SYS_MACOSX)
#define exp2f(x) powf( 2, (x) )
+#define exp2f(x) (float)pow( 2, (x) )
+#define sqrtf sqrt
#endif
#ifdef _MSC_VER