summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-09-01 20:59:44 +0000
committersmatz <smatz@openttd.org>2009-09-01 20:59:44 +0000
commit94988a79f32d63323df3e7cc1e011bbd834504a4 (patch)
tree9f60e5dd470519be5d2ba10beeada3598a6602a6 /src/stdafx.h
parentbc3bdb03fd8e55506283acd11fc040a37234b4e7 (diff)
downloadopenttd-94988a79f32d63323df3e7cc1e011bbd834504a4.tar.xz
(svn r17358) -Fix: compilation was broken for gcc older than 3.4
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 0569ab222..abc9b684b 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -308,8 +308,8 @@ typedef unsigned char byte;
#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