Compilation fix

This commit is contained in:
Bertrand Songis
2019-06-25 14:01:17 +02:00
parent 4560d8de42
commit da226278df
+3 -2
View File
@@ -67,7 +67,8 @@
#define CONVERT_UINT_PTR(x) ((uint32_t *)(x))
#endif
// returns the number of elements of an array
#define DIM(arr) (sizeof((arr)) / sizeof((arr)[0]))
#if !defined(DIM)
#define DIM(__arr) (sizeof((__arr)) / sizeof((__arr)[0]))
#endif
#endif // _DEFINITIONS_H_