(svn r9865) -Fix (r9862): NOT_REACHED() and error() declarations are needed for strgen
authorglx
Thu, 17 May 2007 20:00:45 +0000
changeset 6634 33e42f1ee228
parent 6633 fea441267fe7
child 6635 73064d1771ed
(svn r9865) -Fix (r9862): NOT_REACHED() and error() declarations are needed for strgen
src/stdafx.h
--- a/src/stdafx.h	Thu May 17 13:36:00 2007 +0000
+++ b/src/stdafx.h	Thu May 17 20:00:45 2007 +0000
@@ -327,10 +327,12 @@
 # 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, ...);
+/* 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 /* STRGEN */
 
 #endif /* STDAFX_H */