shell: Make sure the shell implementation and protocol versions match

This commit is contained in:
Kristian Høgsberg
2013-12-08 22:27:11 -08:00
parent 1e65840b61
commit 8d344a0548
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -45,6 +45,10 @@ extern "C" {
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
#ifndef static_assert
#define static_assert(cond, msg)
#endif
#define container_of(ptr, type, member) ({ \
const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})