Commit 801b9b16 authored by Per Cederqvist's avatar Per Cederqvist

Don't include compiler.h. Use HAVE_ATTRIBUTE_NORETURN instead of the

NORETURN symbol, that previously was defined by compiler.h.
parent a3beaee7
/*
* $Id: lyskomd.h,v 0.16 1999/05/24 09:38:28 ceder Exp $
* $Id: lyskomd.h,v 0.17 2001/12/28 21:20:40 ceder Exp $
* Copyright (C) 1991-1996, 1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -26,8 +26,6 @@
#ifndef LYSKOMD_H_INCLUDED
#define LYSKOMD_H_INCLUDED
#include "compiler.h"
/*
* restart_kom is used to try to recover from an impossible error.
* This function is in fact never called, unless some cosmic radiation
......@@ -40,14 +38,20 @@
#if defined(HAVE_VFPRINTF) && defined(HAVE_STDARG_H)
extern void
restart_kom(const char * format, ...)
NORETURN
# if HAVE_ATTRIBUTE_NORETURN
__attribute__ ((__noreturn__))
# endif
# if HAVE_ATTRIBUTE_FORMAT_PRINTF
__attribute__ ((format (printf, 1, 2)))
# endif
;
#else
extern void
restart_kom() NORETURN;
restart_kom()
# if HAVE_ATTRIBUTE_NORETURN
__attribute__ ((__noreturn__))
# endif
;
#endif
#endif /* LYSKOMD_H_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