mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 01:00:35 +08:00
Merge pull request #109 from jlecoeur/jl/arm-none-eabi-gcc7
Fix -Wexpansion-to-defined
This commit is contained in:
@@ -56,9 +56,13 @@
|
|||||||
* This macro can be overriden if needed.
|
* This macro can be overriden if needed.
|
||||||
*/
|
*/
|
||||||
#ifndef UAVCAN_GENERAL_PURPOSE_PLATFORM
|
#ifndef UAVCAN_GENERAL_PURPOSE_PLATFORM
|
||||||
# define UAVCAN_GENERAL_PURPOSE_PLATFORM (defined(__linux__) || defined(__linux) || defined(__APPLE__) ||\
|
# if (defined(__linux__) || defined(__linux) || defined(__APPLE__) ||\
|
||||||
defined(_WIN64) || defined(_WIN32) || defined(__ANDROID__) ||\
|
defined(_WIN64) || defined(_WIN32) || defined(__ANDROID__) ||\
|
||||||
defined(_SYSTYPE_BSD) || defined(__FreeBSD__))
|
defined(_SYSTYPE_BSD) || defined(__FreeBSD__))
|
||||||
|
# define UAVCAN_GENERAL_PURPOSE_PLATFORM 1
|
||||||
|
# else
|
||||||
|
# define UAVCAN_GENERAL_PURPOSE_PLATFORM 0
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user