summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2006-03-09 22:15:54 (GMT)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2006-03-09 22:15:54 (GMT)
commit69dd8ee7e7eb71af18488a6f20c45916a2f0c0bc (patch)
treeebb8e1870a9a87ce76d024e91b866d7da6001fd4
parent20c680e7fce1966febae6af15d698484d6a8883b (diff)
downloadCMake-69dd8ee7e7eb71af18488a6f20c45916a2f0c0bc.zip
CMake-69dd8ee7e7eb71af18488a6f20c45916a2f0c0bc.tar.gz
CMake-69dd8ee7e7eb71af18488a6f20c45916a2f0c0bc.tar.bz2
ENH: remove test temporarily
-rw-r--r--Source/kwsys/testDynamicLoader.cxx8
-rw-r--r--Source/kwsys/testDynload.c11
2 files changed, 13 insertions, 6 deletions
diff --git a/Source/kwsys/testDynamicLoader.cxx b/Source/kwsys/testDynamicLoader.cxx
index 588c5fe..40e426e 100644
--- a/Source/kwsys/testDynamicLoader.cxx
+++ b/Source/kwsys/testDynamicLoader.cxx
@@ -83,10 +83,10 @@ int main(int , char *[])
res += TestDynamicLoader("libdl.so", "TestDynamicLoader",1,0,1);
#endif
// Now try on the generated library
- kwsys_stl::string libname = GetLibName("testDynload");
- res += TestDynamicLoader(libname.c_str(), "dummy",1,0,1);
- res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderFunction",1,1,1);
- res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderData",1,1,1);
+ //kwsys_stl::string libname = GetLibName("testDynload");
+ //res += TestDynamicLoader(libname.c_str(), "dummy",1,0,1);
+ //res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderFunction",1,1,1);
+ //res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderData",1,1,1);
return res;
}
diff --git a/Source/kwsys/testDynload.c b/Source/kwsys/testDynload.c
index fd45cc3..dcfc478 100644
--- a/Source/kwsys/testDynload.c
+++ b/Source/kwsys/testDynload.c
@@ -1,5 +1,12 @@
-int TestDynamicLoaderData;
+#ifdef _WIN32
+#error bla
+#define DL_EXPORT __declspec( dllexport )
+#else
+#define DL_EXPORT
+#endif
-void TestDynamicLoaderFunction()
+DL_EXPORT int TestDynamicLoaderData;
+
+DL_EXPORT void TestDynamicLoaderFunction()
{
}