summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-05-08 16:43:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-05-08 16:43:06 (GMT)
commitf2d3e386f72fb91e5eb1512f95c655366032686d (patch)
tree074c868468360a875f2b29fdec00fb9b39cd6e93
parent39ccc4fb11b52a3dbc18d50e19003cd9a708f623 (diff)
downloadCMake-f2d3e386f72fb91e5eb1512f95c655366032686d.zip
CMake-f2d3e386f72fb91e5eb1512f95c655366032686d.tar.gz
CMake-f2d3e386f72fb91e5eb1512f95c655366032686d.tar.bz2
ENH: make it work on non windows
-rw-r--r--Tests/Framework/bar.cxx2
-rw-r--r--Tests/Framework/foo.cxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/Tests/Framework/bar.cxx b/Tests/Framework/bar.cxx
index 5c9d612..c8ddc0a 100644
--- a/Tests/Framework/bar.cxx
+++ b/Tests/Framework/bar.cxx
@@ -1,5 +1,7 @@
#ifdef _WIN32
# define CM_TEST_LIB_IMPORT __declspec( dllimport )
+#else
+# define CM_TEST_LIB_IMPORT
#endif
CM_TEST_LIB_IMPORT void foo();
int main()
diff --git a/Tests/Framework/foo.cxx b/Tests/Framework/foo.cxx
index 521f6f2..6980888 100644
--- a/Tests/Framework/foo.cxx
+++ b/Tests/Framework/foo.cxx
@@ -1,6 +1,8 @@
#include <stdio.h>
#ifdef _WIN32
# define CM_TEST_LIB_EXPORT __declspec( dllexport )
+#else
+# define CM_TEST_LIB_EXPORT
#endif
CM_TEST_LIB_EXPORT void foo()
{