ClickHouse/libs/libglibc-compatibility/musl/musl_features.h
2019-09-30 12:28:50 +08:00

9 lines
266 B
C++

#pragma once
#define weak __attribute__((__weak__))
#define hidden __attribute__((__visibility__("hidden")))
#define weak_alias(old, new) \
extern __typeof(old) new __attribute__((__weak__, __alias__(#old)))
#define predict_false(x) __builtin_expect(x, 0)