summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testDynloadUse.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-28 15:06:43 (GMT)
committerBrad King <brad.king@kitware.com>2019-03-28 15:06:43 (GMT)
commit24da7da68657c7c719e908f519c0f94da3a15701 (patch)
tree568cbc3959347de18f9822f13ed92a6132c57346 /Source/kwsys/testDynloadUse.c
parentfcfbc01d68aac2eca7435bfa0f01e5d1b3524303 (diff)
parent816663495874e123c2d4a187edb6eab07593f10d (diff)
downloadCMake-24da7da68657c7c719e908f519c0f94da3a15701.zip
CMake-24da7da68657c7c719e908f519c0f94da3a15701.tar.gz
CMake-24da7da68657c7c719e908f519c0f94da3a15701.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2019-03-28 (e92bdbe8)
Diffstat (limited to 'Source/kwsys/testDynloadUse.c')
-rw-r--r--Source/kwsys/testDynloadUse.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/kwsys/testDynloadUse.c b/Source/kwsys/testDynloadUse.c
new file mode 100644
index 0000000..5402add
--- /dev/null
+++ b/Source/kwsys/testDynloadUse.c
@@ -0,0 +1,15 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
+#include "testDynloadImpl.h"
+
+#ifdef _WIN32
+# define DL_EXPORT __declspec(dllexport)
+#else
+# define DL_EXPORT
+#endif
+
+DL_EXPORT int TestLoad()
+{
+ TestDynamicLoaderImplSymbolPointer();
+ return TestDynamicLoaderImplData;
+}