summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/SharedRuntimePlusToolkit/main.cu
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CudaOnly/SharedRuntimePlusToolkit/main.cu')
-rw-r--r--Tests/CudaOnly/SharedRuntimePlusToolkit/main.cu17
1 files changed, 13 insertions, 4 deletions
diff --git a/Tests/CudaOnly/SharedRuntimePlusToolkit/main.cu b/Tests/CudaOnly/SharedRuntimePlusToolkit/main.cu
index 2a4da22..d958c3a 100644
--- a/Tests/CudaOnly/SharedRuntimePlusToolkit/main.cu
+++ b/Tests/CudaOnly/SharedRuntimePlusToolkit/main.cu
@@ -1,19 +1,28 @@
#ifdef _WIN32
# define IMPORT __declspec(dllimport)
+#else
+# define IMPORT
+#endif
+
IMPORT int shared_version();
+
+#ifdef HAS_STATIC_VERSION
+IMPORT int static_version();
+#else
int static_version()
{
return 0;
}
+#endif
+
+#ifdef HAS_MIXED_VERSION
+IMPORT int mixed_version();
+#else
int mixed_version()
{
return 0;
}
-#else
-int shared_version();
-int static_version();
-int mixed_version();
#endif
int main()