Commit 9d05fc43 authored by Federico Vaga's avatar Federico Vaga

include: add ARRAY_SIZE only when it is not defined

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 82169600
......@@ -21,7 +21,9 @@
#include <string.h>
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(_a) (sizeof(_a) / sizeof(_a[0]))
#endif
/**
* It describes the version running on the embedded CPU
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment