mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 05:05:19 +08:00
bitmask.h: compile only if in POSIX/LINUX platforms
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#if defined(__cplusplus) && (defined(__PX4_POSIX) || defined(__PX4_LINUX))
|
||||||
|
|
||||||
#include<type_traits>
|
#include<type_traits>
|
||||||
|
|
||||||
@@ -151,4 +151,4 @@ operator^=(E &lhs, E rhs)
|
|||||||
|
|
||||||
} /* namespace px4 */
|
} /* namespace px4 */
|
||||||
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus && (__PX4_POSIX || __PX4_LINUX) */
|
||||||
|
|||||||
Reference in New Issue
Block a user