diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-10-26 15:35:56 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-10-26 15:35:56 +0200 |
commit | 401986e6bb565f94d975acaba9504eb6ee3c8598 (patch) | |
tree | 19e7ad0ab358a85eec58f630a3044ed814c8593a /src | |
parent | e1debf15bbdb0747cffb6013d59fb3f73462a600 (diff) |
Build with MSVC2005 fixed
To use __rdtsc() function MSVC2005 requires including intrin.h
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/clock.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clock.cpp b/src/clock.cpp index 432b48e..5d91df5 100644 --- a/src/clock.cpp +++ b/src/clock.cpp @@ -25,6 +25,10 @@ #include <stddef.h> +#if defined _MSC_VER +#include <intrin.h> +#endif + #if !defined ZMQ_HAVE_WINDOWS #include <sys/time.h> #endif |