aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPavel Kirienko <pavel.kirienko@gmail.com>2014-05-07 14:24:40 +0400
committerPavel Kirienko <pavel.kirienko@gmail.com>2014-05-07 14:24:40 +0400
commitbe728d189e4b1b04de5a0b45710e08effcf50b8b (patch)
treeb8789bcd21da108d937a77995c715719b259bc0f /src
parent04df4270f0ac6aec360076185363338366475166 (diff)
downloadpx4-firmware-be728d189e4b1b04de5a0b45710e08effcf50b8b.tar.gz
px4-firmware-be728d189e4b1b04de5a0b45710e08effcf50b8b.tar.bz2
px4-firmware-be728d189e4b1b04de5a0b45710e08effcf50b8b.zip
Catching up with libuavcan - some preprocessor symbols are no longer required to be defined explicitly
Diffstat (limited to 'src')
-rw-r--r--src/modules/uavcan/module.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/uavcan/module.mk b/src/modules/uavcan/module.mk
index c91208342..098543879 100644
--- a/src/modules/uavcan/module.mk
+++ b/src/modules/uavcan/module.mk
@@ -49,9 +49,9 @@ SRCS += uavcan_main.cpp \
include $(UAVCAN_DIR)/libuavcan/include.mk
SRCS += $(LIBUAVCAN_SRC)
INCLUDE_DIRS += $(LIBUAVCAN_INC)
-EXTRADEFINES += -DUAVCAN_MEM_POOL_BLOCK_SIZE=56 \
- -DUAVCAN_TOSTRING=0 \
- -DUAVCAN_CPP_VERSION=UAVCAN_CPP03
+# Since actual compiler mode is C++11, the library will default to UAVCAN_CPP11, but it will fail to compile
+# because this platform lacks most of the standard library and STL. Hence we need to force C++03 mode.
+EXTRADEFINES += -DUAVCAN_CPP_VERSION=UAVCAN_CPP03
#
# libuavcan drivers for STM32