* lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
__builtin_expect also on clang.
+2020-08-16 Bruno Haible <bruno@clisp.org>
+
+ avltreehash-list, rbtreehash-list: Optimize also on clang.
+ * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
+ __builtin_expect also on clang.
+
2020-08-16 Bruno Haible <bruno@clisp.org>
Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
return -1;
}
/* Tell GCC that the likely return value is 0. */
-#if __GNUC__ >= 3
+#if (__GNUC__ >= 3) || (__clang_major__ >= 4)
# define add_nodes_to_buckets(list) \
__builtin_expect ((add_nodes_to_buckets) (list), 0)
#endif