summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-06 22:17:12 +0000
committerrubidium <rubidium@openttd.org>2008-05-06 22:17:12 +0000
commitc27f3cfa6239ff98f3b8dfe9a20b1177707a530f (patch)
tree5c909dbb0966fd6895c3a51a9493a9dea189c0c9 /src/stdafx.h
parent9db77e3808139fe3364345aa7bf09a5e41198e4c (diff)
downloadopenttd-c27f3cfa6239ff98f3b8dfe9a20b1177707a530f.tar.xz
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
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 43a1694fb..80c60f1c9 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -283,7 +283,7 @@ typedef unsigned char byte;
#if defined(__OS2__)
#define assert_compile(expr)
#else
- #define assert_compile(expr) extern "C" void __ct_assert__(int a[1 - 2 * !(expr)])
+ #define assert_compile(expr) extern const int __ct_assert__[1 - 2 * !(expr)]
#endif /* __OS2__ */
/* Check if the types have the bitsizes like we are using them */
@@ -292,7 +292,7 @@ assert_compile(sizeof(uint32) == 4);
assert_compile(sizeof(uint16) == 2);
assert_compile(sizeof(uint8) == 1);
-#define lengthof(x) (sizeof(x)/sizeof(x[0]))
+#define lengthof(x) (sizeof(x) / sizeof(x[0]))
#define endof(x) (&x[lengthof(x)])
#define lastof(x) (&x[lengthof(x) - 1])