Compilation fix

This commit is contained in:
Bertrand Songis
2019-06-25 11:30:52 +02:00
parent f9ab0ee9ad
commit 4560d8de42
3 changed files with 4 additions and 3 deletions
+3
View File
@@ -67,4 +67,7 @@
#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]))
#endif // _DEFINITIONS_H_
-3
View File
@@ -634,9 +634,6 @@ void doLoopCommonActions();
#define BITMASK(bit) (1<<(bit))
/// returns the number of elements of an array
#define DIM(arr) (sizeof((arr))/sizeof((arr)[0]))
template<class t> inline t min(t a, t b) { return a<b?a:b; }
template<class t> inline t max(t a, t b) { return a>b?a:b; }
template<class t> inline t sgn(t a) { return a>0 ? 1 : (a < 0 ? -1 : 0); }
+1
View File
@@ -22,6 +22,7 @@
#define _MODULES_H_
#include "bitfield.h"
#include "definitions.h"
#define CROSSFIRE_CHANNELS_COUNT 16