mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 16:51:16 +08:00
bitmask.h: compile only if in POSIX/LINUX platforms
This commit is contained in:
1 parent
f5000a9691
commit
993755b24b
1 file changed
+2
-2
@@ -40,7 +40,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus) && (defined(__PX4_POSIX) || defined(__PX4_LINUX))
|
||||
|
||||
#include<type_traits>
|
||||
|
||||
@@ -151,4 +151,4 @@ operator^=(E &lhs, E rhs)
|
||||
|
||||
} /* namespace px4 */
|
||||
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus && (__PX4_POSIX || __PX4_LINUX) */
|
||||
Reference in new issue
Block a user