From 648860248eddbf6a4a2a4cab67bef964927bb81f Mon Sep 17 00:00:00 2001 From: Julien Lecoeur Date: Tue, 4 Jul 2017 21:54:18 +0200 Subject: [PATCH] Fix -Wexpansion-to-defined --- libuavcan/include/uavcan/build_config.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libuavcan/include/uavcan/build_config.hpp b/libuavcan/include/uavcan/build_config.hpp index e9cb32072a..8a886c2975 100644 --- a/libuavcan/include/uavcan/build_config.hpp +++ b/libuavcan/include/uavcan/build_config.hpp @@ -56,9 +56,13 @@ * This macro can be overriden if needed. */ #ifndef UAVCAN_GENERAL_PURPOSE_PLATFORM -# define UAVCAN_GENERAL_PURPOSE_PLATFORM (defined(__linux__) || defined(__linux) || defined(__APPLE__) ||\ - defined(_WIN64) || defined(_WIN32) || defined(__ANDROID__) ||\ - defined(_SYSTYPE_BSD) || defined(__FreeBSD__)) +# if (defined(__linux__) || defined(__linux) || defined(__APPLE__) ||\ + defined(_WIN64) || defined(_WIN32) || defined(__ANDROID__) ||\ + defined(_SYSTYPE_BSD) || defined(__FreeBSD__)) +# define UAVCAN_GENERAL_PURPOSE_PLATFORM 1 +# else +# define UAVCAN_GENERAL_PURPOSE_PLATFORM 0 +# endif #endif /**