mirror of https://github.com/l4ka/hazelnut.git
40 lines
986 B
C
40 lines
986 B
C
/*********************************************************************
|
|
*
|
|
* Copyright (C) 1999, 2000, 2001, Karlsruhe University
|
|
* and Dresden University
|
|
*
|
|
* File path: l4/x86/compiler.h
|
|
* Description: compiler specifications
|
|
*
|
|
* @LICENSE@
|
|
*
|
|
* $Id: compiler.h,v 1.2 2001/12/13 08:36:40 uhlig Exp $
|
|
*
|
|
********************************************************************/
|
|
#ifndef __L4_COMPILER_H__
|
|
#define __L4_COMPILER_H__
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
#ifndef __GNUC__
|
|
#error "The libl4sys library must be used with Gcc."
|
|
#endif
|
|
|
|
#ifndef __cplusplus
|
|
# ifdef __OPTIMIZE__
|
|
# define L4_INLINE extern __inline__
|
|
# else /* ! __OPTIMIZE__ */
|
|
# define L4_INLINE static
|
|
# endif /* ! __OPTIMIZE__ */
|
|
#else /* __cplusplus */
|
|
# define L4_INLINE inline
|
|
#endif /* __cplusplus */
|
|
|
|
#define L4_NORETURN __attribute__((noreturn))
|
|
|
|
#endif /* !__ASSEMBLY__ */
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#endif
|