From 5b74a6ab2fb12138a8ce661792271c960e21831c Mon Sep 17 00:00:00 2001 From: glx Date: Thu, 17 May 2007 20:00:45 +0000 Subject: (svn r9865) -Fix (r9862): NOT_REACHED() and error() declarations are needed for strgen --- src/stdafx.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/stdafx.h b/src/stdafx.h index ac85c0419..94c6da5ff 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -327,10 +327,12 @@ assert_compile(sizeof(uint8) == 1); # define Point OTTD_AMIGA_POINT #endif +void #ifndef STRGEN -/* In strgen error is not fatal and it doesn't use NOT_REACHED */ -void NORETURN CDECL error(const char *str, ...); -#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__) +/* In strgen error is not fatal and returns */ +NORETURN #endif /* STRGEN */ +CDECL error(const char *str, ...); +#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__) #endif /* STDAFX_H */ -- cgit v1.2.3-70-g09d2