Commit fa9e25ac authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(NORETURN): New define.

(Volatile, Inline): Removed.
parent 68e27590
/*
* $Id: compiler.h,v 0.5 1995/01/01 20:17:08 ceder Exp $
* $Id: compiler.h,v 0.6 1995/09/05 18:31:33 ceder Exp $
* Copyright (C) 1990, 1991, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -45,21 +45,13 @@
*/
#ifndef SPECIAL_H_ALREADY_INCLUDED__
#define SPECIAL_H_ALREADY_INCLUDED__
#ifdef __GNUC__
# define Inline __inline__ /* Inline function */
# define Volatile volatile /* Function does not return */
#ifndef COMPILER_H_ALREADY_INCLUDED__
#define COMPILER_H_ALREADY_INCLUDED__
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5)
# define NORETURN __attribute__ ((__noreturn__))
#else
# define Inline
# define Volatile
# define NORETURN
#endif
#endif /* SPECIAL_H_ALREADY_INCLUDED__ */
#endif /* COMPILER_H_ALREADY_INCLUDED__ */
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