blob: 52a1fd1379b44f19cb5c84ce2cdbb2b90cde995e [file] [log] [blame]
vapier2751f262008-02-11 16:39:54 +00001/*
2 * compiler.h: take care of fun compiler details here
3 *
4 * Licensed under the GPL-2 or later
5 */
6
7#ifndef __LTP_COMPILER_H__
8#define __LTP_COMPILER_H__
9
10#define attribute_noreturn __attribute__((noreturn))
11
vapier37e9aaf2008-09-24 04:39:38 +000012#ifndef ARRAY_SIZE
13# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
14#endif
15
vapier2751f262008-02-11 16:39:54 +000016#endif