From db18f760f7915c23c5dc1dd33cc582c35339dc79 Mon Sep 17 00:00:00 2001 From: "Ding, Wei (xN/A) TX" Date: Tue, 24 Mar 2015 14:28:03 -0500 Subject: [PATCH] ECR #333755 - Fixed linux compilation of undefined functions. [git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1133906] [ROCm/ROCR-Runtime commit: 533bad8360f20693b79fe6102947806f407809fa] --- projects/rocr-runtime/samples/common/assemble.hpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/projects/rocr-runtime/samples/common/assemble.hpp b/projects/rocr-runtime/samples/common/assemble.hpp index be758a001a..9024acca36 100644 --- a/projects/rocr-runtime/samples/common/assemble.hpp +++ b/projects/rocr-runtime/samples/common/assemble.hpp @@ -5,9 +5,10 @@ #include "hsa.h" #include "hsa_ext_finalize.h" - -#ifdef __cplusplus -extern "C" { +#if defined(_MSC_VER) + #ifdef __cplusplus + extern "C" { + #endif #endif hsa_status_t ModuleCreateFromHsailTextFile( @@ -39,8 +40,10 @@ hsa_status_t ModuleDisassemble( const char *hsail_text_filename ); -#ifdef __cplusplus -} +#if defined(_MSC_VER) + #ifdef __cplusplus + } + #endif #endif