defs.h | defs.h | |||
---|---|---|---|---|
skipping to change at line 152 | skipping to change at line 152 | |||
#if defined(__GNUC__) && !defined(__cplusplus) | #if defined(__GNUC__) && !defined(__cplusplus) | |||
# define __array_size_check(a) BUILD_BUG_ON_EXPR(\ | # define __array_size_check(a) BUILD_BUG_ON_EXPR(\ | |||
__builtin_types_compatible_p(__typeof__(a), __typeof__(&*(a) ))) | __builtin_types_compatible_p(__typeof__(a), __typeof__(&*(a) ))) | |||
#else | #else | |||
# define __array_size_check(a) 0 | # define __array_size_check(a) 0 | |||
#endif | #endif | |||
#ifndef ARRAY_SIZE | #ifndef ARRAY_SIZE | |||
# define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)) + __array_size_check( x)) | # define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)) + __array_size_check( x)) | |||
#endif | #endif | |||
#ifndef BUILD_BUG_ON_EXPR | #ifndef BUILD_BUG_ON_EXPR | |||
# define BUILD_BUG_ON_EXPR(condition) (sizeof(char[1 - 2 * !!(conditio n)])) | # define BUILD_BUG_ON_EXPR(condition) (sizeof(char[1 - 2 * !!(conditio n)]) - 1) | |||
#endif | #endif | |||
#ifndef BUILD_BUG_ON | #ifndef BUILD_BUG_ON | |||
# define BUILD_BUG_ON(condition) ((void)BUILD_BUG_ON_EXPR(condition)) | # define BUILD_BUG_ON(condition) ((void)BUILD_BUG_ON_EXPR(condition)) | |||
#endif | #endif | |||
#ifndef O_BINARY | #ifndef O_BINARY | |||
# define O_BINARY 0 | # define O_BINARY 0 | |||
#endif | #endif | |||
#ifndef S_IRUGO | #ifndef S_IRUGO | |||
# define S_IRUGO (S_IRUSR | S_IRGRP | S_IROTH) | # define S_IRUGO (S_IRUSR | S_IRGRP | S_IROTH) | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||