summaryrefslogtreecommitdiff
path: root/tests/src/Interop
diff options
context:
space:
mode:
authorRama Krishnan Raghupathy <ramarag@microsoft.com>2016-03-08 18:26:13 -0800
committerRama Krishnan Raghupathy <ramarag@microsoft.com>2016-03-09 14:27:22 -0800
commitb8f570dc3028cab153fb6a007ba8d24abb4e1fd3 (patch)
treeb1dd1ed93d3d512ea0dd902f31da9cd7ee78443e /tests/src/Interop
parentd2ab1fbd40343e01fcb71fb9793ee7c681eeb1de (diff)
downloadcoreclr-b8f570dc3028cab153fb6a007ba8d24abb4e1fd3.tar.gz
coreclr-b8f570dc3028cab153fb6a007ba8d24abb4e1fd3.tar.bz2
coreclr-b8f570dc3028cab153fb6a007ba8d24abb4e1fd3.zip
Enable native test binaries to be built for Arm64
Diffstat (limited to 'tests/src/Interop')
-rw-r--r--tests/src/Interop/common/xplatform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/src/Interop/common/xplatform.h b/tests/src/Interop/common/xplatform.h
index 3d30f0b75b..e830327bc9 100644
--- a/tests/src/Interop/common/xplatform.h
+++ b/tests/src/Interop/common/xplatform.h
@@ -30,6 +30,11 @@
// dllexport
#if defined _WIN32
#define DLL_EXPORT __declspec(dllexport)
+
+#ifndef snprintf
+#define snprintf _snprintf
+#endif //snprintf
+
#else //!_Win32
#if __GNUC__ >= 4
#define DLL_EXPORT __attribute__ ((visibility ("default")))