summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.h
diff options
context:
space:
mode:
authorJon TURNEY <[email protected]>2011-12-19 17:42:02 +0000
committerJon TURNEY <[email protected]>2011-12-20 13:45:27 +0000
commit9f8573b7aeed3ef88d680dbf2856f19503ac5cd6 (patch)
tree840795005f4dcba89ee3b8ec0e765f73929d8aa5 /src/mesa/main/imports.h
parent704d22dfc1da2cb8c6c46d540018ae67d09f4d36 (diff)
Fix compilation on cygwin after commit 762c9766c93697af8d7fbaa729aed118789dbe8e
Fix compilation on cygwin after commit 762c9766c93697af8d7fbaa729aed118789dbe8e "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 <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r--src/mesa/main/imports.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 797f357426c..d5e3859f822 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(ANDROID)
+#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(ANDROID)
#define ffs __builtin_ffs
#define ffsll __builtin_ffsll
#endif