Compilation fix
This commit is contained in:
@@ -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_
|
||||
|
||||
@@ -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); }
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#define _MODULES_H_
|
||||
|
||||
#include "bitfield.h"
|
||||
#include "definitions.h"
|
||||
|
||||
#define CROSSFIRE_CHANNELS_COUNT 16
|
||||
|
||||
|
||||
Reference in New Issue
Block a user