summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/SharedRuntimePlusToolkit/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Cuda/SharedRuntimePlusToolkit/main.cpp')
-rw-r--r--Tests/Cuda/SharedRuntimePlusToolkit/main.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/Tests/Cuda/SharedRuntimePlusToolkit/main.cpp b/Tests/Cuda/SharedRuntimePlusToolkit/main.cpp
index 2a4da22..d958c3a 100644
--- a/Tests/Cuda/SharedRuntimePlusToolkit/main.cpp
+++ b/Tests/Cuda/SharedRuntimePlusToolkit/main.cpp
@@ -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()