aboutsummaryrefslogtreecommitdiff
path: root/profiling/common/include/DllExport.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'profiling/common/include/DllExport.hpp')
-rw-r--r--profiling/common/include/DllExport.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/profiling/common/include/DllExport.hpp b/profiling/common/include/DllExport.hpp
new file mode 100644
index 0000000000..8e01d43bca
--- /dev/null
+++ b/profiling/common/include/DllExport.hpp
@@ -0,0 +1,19 @@
+//
+// Copyright © 2020 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+#pragma once
+
+#if defined (_MSC_VER)
+
+#ifdef ARMNN_COMPILING_DLL
+#define ARMNN_DLLEXPORT __declspec(dllexport)
+#else
+#define ARMNN_DLLEXPORT __declspec(dllimport)
+#endif
+
+#else
+
+#define ARMNN_DLLEXPORT
+
+#endif \ No newline at end of file