From: Eric Petit Date: Mon, 16 Aug 2004 08:52:05 +0000 (+0000) Subject: OS X is missing exp2f() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ffe5a90e7553c20f40dcb1ae372579a941280cb;p=libx264 OS X is missing exp2f() git-svn-id: svn://svn.videolan.org/x264/trunk@31 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 9e0c8a43..e2ce4d49 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -35,6 +35,10 @@ #define DEBUG_RC 0 +#ifdef SYS_MACOSX +#define exp2f(x) ( (float) exp2( (x) ) ) +#endif + struct x264_ratecontrol_t { /* constants */