[Mesa-dev] [PATCH] mesa: Use __builtin_ffsll on Mac OS X.
Brian Paul
brian.e.paul at gmail.com
Wed Dec 28 04:22:29 PST 2011
On Wed, Dec 28, 2011 at 1:39 AM, Vinson Lee <vlee at vmware.com> wrote:
> Fixes this GCC warning.
> arrayobj.c: In function '_mesa_update_array_object_max_element':
> arrayobj.c:310: warning: implicit declaration of function 'ffsll'
>
> Signed-off-by: Vinson Lee <vlee at vmware.com>
> ---
> src/mesa/main/imports.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
> index d5e3859..b7e8743 100644
> --- a/src/mesa/main/imports.h
> +++ b/src/mesa/main/imports.h
> @@ -568,7 +568,7 @@ _mesa_init_sqrt_table(void);
>
> #ifdef __GNUC__
>
> -#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(ANDROID)
> +#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(ANDROID) || defined(__APPLE__)
> #define ffs __builtin_ffs
> #define ffsll __builtin_ffsll
> #endif
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list