diff options
author | Brian Paul <brianp@vmware.com> | 2013-03-28 17:06:35 -0600 |
---|---|---|
committer | Andreas Boll <andreas.boll.dev@gmail.com> | 2013-04-17 12:57:55 +0200 |
commit | 26de5efb9c42eb433f3c16ed94b6b061799f4bae (patch) | |
tree | a561559a1d1d19b95925b7d8deabe6bf3118d7e0 | |
parent | 365525ef129fd09e0c9a891ac9ff7f3520359d05 (diff) |
mesa: remove platform checks around __builtin_ffs, __builtin_ffsll
Use the __builtin_ffs, __builtin_ffsll functions whenever we have GCC,
not just for specific platforms. Fixes Solaris build.
Note: This is a candidate for the stable branches.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=62868
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
(cherry picked from commit 95df2b28831147b3e7ce2a3b6257bf60c46b4ab4)
-rw-r--r-- | src/mesa/main/imports.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 4b74f70d33..4fc80698d1 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -562,17 +562,11 @@ _mesa_realloc( void *oldBuffer, size_t oldSize, size_t newSize ); #ifndef FFS_DEFINED #define FFS_DEFINED 1 #ifdef __GNUC__ - -#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(ANDROID) || defined(__APPLE__) #define ffs __builtin_ffs #define ffsll __builtin_ffsll -#endif - #else - extern int ffs(int i); extern int ffsll(long long int i); - #endif /*__ GNUC__ */ #endif /* FFS_DEFINED */ |