From 0774fe35b0b22be551d554714cb9658d8d1b4c04 Mon Sep 17 00:00:00 2001 From: "Ding, Wei (xN/A) TX" Date: Tue, 24 Mar 2015 11:19:53 -0500 Subject: [PATCH] ECR #333755 - Fixed a compilation problem under windows. [git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1133835] --- samples/common/hsatimer.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/samples/common/hsatimer.h b/samples/common/hsatimer.h index a15b06f583..b37f46c623 100644 --- a/samples/common/hsatimer.h +++ b/samples/common/hsatimer.h @@ -8,15 +8,23 @@ #include #include #include -#include +#include #include - #include #include #include using namespace std; +#if defined(__GNUC__) #include +#include +#endif + +#if defined(_MSC_VER) +#include +#include +#include +#endif #define HSA_FAILURE 1 #define HSA_SUCCESS 0