summaryrefslogtreecommitdiffstats
path: root/Tests/LibName/foo.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-29 22:45:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-29 22:45:55 (GMT)
commitb56a60d01e8b30dec54b118bc7738ec199a459d4 (patch)
treefcde7271a01841867f2e5d73d0ae999ed88c76b3 /Tests/LibName/foo.c
parente2a7c9358f24ac98ae7279491f010bd8f82a8692 (diff)
downloadCMake-b56a60d01e8b30dec54b118bc7738ec199a459d4.zip
CMake-b56a60d01e8b30dec54b118bc7738ec199a459d4.tar.gz
CMake-b56a60d01e8b30dec54b118bc7738ec199a459d4.tar.bz2
ENH: fix errors for unix builds
Diffstat (limited to 'Tests/LibName/foo.c')
-rw-r--r--Tests/LibName/foo.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Tests/LibName/foo.c b/Tests/LibName/foo.c
index b068b46..c43cde6 100644
--- a/Tests/LibName/foo.c
+++ b/Tests/LibName/foo.c
@@ -1,5 +1,11 @@
-__declspec(dllimport) void foo();
-__declspec(dllexport) void bar()
+#ifdef _WIN32
+__declspec(dllimport)
+#endif
+ void foo();
+#ifdef _WIN32
+__declspec(dllexport)
+#endif
+ void bar()
{
foo();
}