chiark / gitweb /
Loosen playlist command rights.
[disorder] / lib / bits.c
index d570e6407da875e2781b2c03dced9784634c7bec..4ed2402cae9f89613ce230ea0d317a4c6f3a45b0 100644 (file)
  * @brief Bit operations
  */
 
-#include <config.h>
-#include "types.h"
+#include "common.h"
 
 #include <math.h>
 
 #include "bits.h"
 
+#if !HAVE_FLS
 /** @brief Compute index of leftmost 1 bit
  * @param n Integer
  * @return Index of leftmost 1 bit or -1
@@ -69,7 +69,7 @@ int leftmost_bit(uint32_t n) {
    */
   return x - 1;
 }
-
+#endif
 
 /*
 Local Variables: