Skip to content
Snippets Groups Projects
Commit 0770f9e0 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

capnp_c: Work around AVR not defining ssize_t

parent 51d9da15
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,11 @@ typedef intmax_t ssize_t; ...@@ -28,6 +28,11 @@ typedef intmax_t ssize_t;
#include <stddef.h> #include <stddef.h>
#endif #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. // Cross-platform macro ALIGNED_(x) aligns a struct by `x` bytes.
#ifdef _MSC_VER #ifdef _MSC_VER
#define ALIGNED_(x) __declspec(align(x)) #define ALIGNED_(x) __declspec(align(x))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment