summaryrefslogtreecommitdiff
path: root/src/os_timer.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-30 17:54:48 +0000
committersmatz <smatz@openttd.org>2009-01-30 17:54:48 +0000
commit1dcbba1c2d6845646d5abbf60e58d0080b461965 (patch)
tree1e4742d382679303b0a826121f73634dee538903 /src/os_timer.cpp
parent6d22822faf477743ae7931fe95de51cc51b57c66 (diff)
downloadopenttd-1dcbba1c2d6845646d5abbf60e58d0080b461965.tar.xz
(svn r15296) -Cleanup: remove redundant _MSC_VER >= 1400 checks, older versions aren't supported anymore. One check in stdafx.h is enough
Diffstat (limited to 'src/os_timer.cpp')
-rw-r--r--src/os_timer.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/os_timer.cpp b/src/os_timer.cpp
index bf0a171de..46bb1d851 100644
--- a/src/os_timer.cpp
+++ b/src/os_timer.cpp
@@ -9,22 +9,12 @@
/* rdtsc for MSC_VER, uses simple inline assembly, or _rdtsc
* from external win64.asm because VS2005 does not support inline assembly */
#if defined(_MSC_VER) && !defined(RDTSC_AVAILABLE) && !defined(WINCE)
-# if _MSC_VER >= 1400
#include <intrin.h>
uint64 ottd_rdtsc()
{
return __rdtsc();
}
-# else
-uint64 _declspec(naked) ottd_rdtsc()
-{
- _asm {
- rdtsc
- ret
- }
-}
-# endif
-# define RDTSC_AVAILABLE
+#define RDTSC_AVAILABLE
#endif
/* rdtsc for OS/2. Hopefully this works, who knows */