mesa: Use __builtin_ffsll on Mac OS X.
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@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user