summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/StaticRuntimePlusToolkit/shared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Cuda/StaticRuntimePlusToolkit/shared.cpp')
-rw-r--r--Tests/Cuda/StaticRuntimePlusToolkit/shared.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/Tests/Cuda/StaticRuntimePlusToolkit/shared.cpp b/Tests/Cuda/StaticRuntimePlusToolkit/shared.cpp
index 9967b66..f3c3dbc 100644
--- a/Tests/Cuda/StaticRuntimePlusToolkit/shared.cpp
+++ b/Tests/Cuda/StaticRuntimePlusToolkit/shared.cpp
@@ -1,8 +1,16 @@
+#ifdef _WIN32
+# define IMPORT __declspec(dllimport)
+# define EXPORT __declspec(dllexport)
+#else
+# define IMPORT
+# define EXPORT
+#endif
+
int curand_main();
int nppif_main();
-int shared_version()
+EXPORT int shared_version()
{
return curand_main() == 0 && nppif_main() == 0;
}