Mercurial > hg > openttd
changeset 12866:d1c4a23a37b8 draft
(svn r17358) -Fix: compilation was broken for gcc older than 3.4
author | smatz <smatz@openttd.org> |
---|---|
date | Tue, 01 Sep 2009 20:59:44 +0000 (2009-09-01) |
parents | 3be3991ed3df |
children | 00a4b1fd0faf |
files | src/stdafx.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/stdafx.h +++ b/src/stdafx.h @@ -308,8 +308,8 @@ #define PERSONAL_DIR "" #endif -/* Compile time assertions */ -#if defined(__OS2__) +/* Compile time assertions, disabled for OS/2 or GCC < 3.4 (GCC < 3 isn't supported anymore) */ +#if defined(__OS2__) || (defined(__GNUC__) && __GNUC__ == 3 && __GNUC_MINOR__ < 4) #define assert_compile(expr) #else #define assert_compile(expr) extern const int __ct_assert__[1 - 2 * !(expr)] UNUSED