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
commitdf7966053102ed6e509992554ab7544c56454f26 (patch)
tree1e4742d382679303b0a826121f73634dee538903 /src/os_timer.cpp
parent1c7cb8368cb90a5e94daed132c6f49be40931c81 (diff)
downloadopenttd-df7966053102ed6e509992554ab7544c56454f26.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 */