macros: add PRSZu because arm-none-eabi does not support %zu

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent bff4845c32
commit 86afdc1707
  1. 6
      include/macros.h

@ -1,5 +1,11 @@
#pragma once
#ifdef STM32F0
#define PRSZu "u"
#else
#define PRSZu "zu"
#endif
#include <limits.h>
#define min(x, y) ((x < y) ? (x) : (y))

Loading…
Cancel
Save