summaryrefslogtreecommitdiff
path: root/src/helpers.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-19 21:11:44 +0000
committerrubidium <rubidium@openttd.org>2007-02-19 21:11:44 +0000
commitee3d28ff8f304e979ad274c5319942409b6e5cad (patch)
tree535f4bea06817bca1ec76a8f2534ca3e36f51386 /src/helpers.hpp
parent3b9a8d6201ef3dcff4e3133dad58abe49f1e9228 (diff)
downloadopenttd-ee3d28ff8f304e979ad274c5319942409b6e5cad.tar.xz
(svn r8818) -Codechange: remove the #ifdef _cplusplus remnants.
Diffstat (limited to 'src/helpers.hpp')
-rw-r--r--src/helpers.hpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/helpers.hpp b/src/helpers.hpp
index 2fed51582..5f378803a 100644
--- a/src/helpers.hpp
+++ b/src/helpers.hpp
@@ -6,8 +6,6 @@
/** @file helpers.hpp */
#include "macros.h"
-#ifdef __cplusplus
-
/** When allocating using malloc/calloc in C++ it is usually needed to cast the return value
* from void* to the proper pointer type. Another alternative would be MallocT<> as follows */
template <typename T> FORCEINLINE T* MallocT(size_t num_elements)
@@ -161,12 +159,4 @@ template <typename T> FORCEINLINE T ToggleBitT(T t, int bit_index)
return (T)val;
}
-#else // __cplusplus
-
-#define DECLARE_POSTFIX_INCREMENT(E)
-#define DECLARE_ENUM_AS_BIT_SET(E)
-#define DECLARE_ENUM_AS_BIT_INDEX(E1,E2)
-
-#endif // __cplusplus
-
#endif /* HELPERS_HPP */