From: Vamsi Krishna Date: Tue, 4 Feb 2020 17:53:08 +0000 (+0530) Subject: Define macro BIT() in qca_vendor.h X-Git-Tag: hostap_2_10~1853 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=490d90db40049357cb7a1a3543efed069e3821b4;p=thirdparty%2Fhostap.git Define macro BIT() in qca_vendor.h As qca_vendor.h alone can be included by other applications, define macro BIT() in qca_vendor.h itself if not yet defined, e.g., by including utils/common.h before qca_vendor.h. Signed-off-by: Jouni Malinen --- diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 61164f026..f21e966d6 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -19,6 +19,10 @@ #define OUI_QCA 0x001374 +#ifndef BIT +#define BIT(x) (1U << (x)) +#endif + /** * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs */