diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-11-21 15:51:00 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-11-21 15:51:00 +0100 |
commit | 0770f9e077bf1dad9a977e6ad78ea0389794922b (patch) | |
tree | 3c73c6b58c455ba870eeb0219bb16943475d0cca /include/lib/capnp-c | |
parent | 51d9da1532cc37608bce150540e99157cbc6a6d2 (diff) |
capnp_c: Work around AVR not defining ssize_t
Diffstat (limited to 'include/lib/capnp-c')
-rw-r--r-- | include/lib/capnp-c/capnp_c.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/lib/capnp-c/capnp_c.h b/include/lib/capnp-c/capnp_c.h index 609826a..28f171d 100644 --- a/include/lib/capnp-c/capnp_c.h +++ b/include/lib/capnp-c/capnp_c.h @@ -28,6 +28,11 @@ typedef intmax_t ssize_t; #include <stddef.h> #endif +// AVR does not have ssize_T either +#ifdef MULTIPASS_ARCH_arduino_nano +typedef intmax_t ssize_t; +#endif + // Cross-platform macro ALIGNED_(x) aligns a struct by `x` bytes. #ifdef _MSC_VER #define ALIGNED_(x) __declspec(align(x)) |