Fix compilation on cygwin after commit 762c9766c9
Fix compilation on cygwin after commit 762c9766c9
"Use VERT_ATTRIB_* indexed array in gl_array_object" added the first non-driver
use of ffsll(), which exposes the fact that this isn't provided on cygwin.
Found by tinderbox, see [1]
[1] http://tinderbox.freedesktop.org/builds/2011-11-30-0017/logs/libGL/#build
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
704d22dfc1
commit
9f8573b7ae
|
@ -568,7 +568,7 @@ _mesa_init_sqrt_table(void);
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
||||||
#if defined(__MINGW32__) || defined(ANDROID)
|
#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(ANDROID)
|
||||||
#define ffs __builtin_ffs
|
#define ffs __builtin_ffs
|
||||||
#define ffsll __builtin_ffsll
|
#define ffsll __builtin_ffsll
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue