summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-14 16:43:15 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-14 16:43:15 +0100
commitef50d0a6950b8fc209f90a2c89780657e318f1d7 (patch)
tree634e71a887fa7462c6066811f82c5c5933b4a7ad
parent86e77f63bbdfef1ee2418e6d57f6532cd6fc0362 (diff)
mpack: properly detect if running on embedded
-rw-r--r--include/lib/mpack/mpack.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/lib/mpack/mpack.h b/include/lib/mpack/mpack.h
index 4fc0d13..96014d4 100644
--- a/include/lib/mpack/mpack.h
+++ b/include/lib/mpack/mpack.h
@@ -144,7 +144,13 @@
* for debugging and in allocation helpers.
*/
#ifndef MPACK_STDLIB
+#if defined(MULTIPASS_ARCH_msp430fr5969lp) || \
+ defined(MULTIPASS_ARCH_arduino_nano) || defined(MULTIPASS_ARCH_blinkenrocket) || \
+ defined(MULTIPASS_ARCH_esp8266)
#define MPACK_STDLIB 0
+#else
+#define MPACK_STDLIB 1
+#endif
#endif
/**
@@ -154,7 +160,13 @@
* reading/writing C files and makes debugging easier.
*/
#ifndef MPACK_STDIO
+#if defined(MULTIPASS_ARCH_msp430fr5969lp) || \
+ defined(MULTIPASS_ARCH_arduino_nano) || defined(MULTIPASS_ARCH_blinkenrocket) || \
+ defined(MULTIPASS_ARCH_esp8266)
#define MPACK_STDIO 0
+#else
+#define MPACK_STDIO 1
+#endif
#endif
/**