diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-29 22:45:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-29 22:45:55 (GMT) |
commit | b56a60d01e8b30dec54b118bc7738ec199a459d4 (patch) | |
tree | fcde7271a01841867f2e5d73d0ae999ed88c76b3 /Tests/LibName | |
parent | e2a7c9358f24ac98ae7279491f010bd8f82a8692 (diff) | |
download | CMake-b56a60d01e8b30dec54b118bc7738ec199a459d4.zip CMake-b56a60d01e8b30dec54b118bc7738ec199a459d4.tar.gz CMake-b56a60d01e8b30dec54b118bc7738ec199a459d4.tar.bz2 |
ENH: fix errors for unix builds
Diffstat (limited to 'Tests/LibName')
-rw-r--r-- | Tests/LibName/bar.c | 6 | ||||
-rw-r--r-- | Tests/LibName/foo.c | 10 | ||||
-rw-r--r-- | Tests/LibName/foobar.c | 5 |
3 files changed, 17 insertions, 4 deletions
diff --git a/Tests/LibName/bar.c b/Tests/LibName/bar.c index c434bf7..eff5acf 100644 --- a/Tests/LibName/bar.c +++ b/Tests/LibName/bar.c @@ -1,3 +1,7 @@ -__declspec(dllexport) void foo() +#ifdef _WIN32 +__declspec(dllexport) +#endif + + void foo() { } 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(); } diff --git a/Tests/LibName/foobar.c b/Tests/LibName/foobar.c index ac22ab3..39f3a82 100644 --- a/Tests/LibName/foobar.c +++ b/Tests/LibName/foobar.c @@ -1,4 +1,7 @@ -__declspec(dllimport) void bar(); +#ifdef _WIN32 +__declspec(dllimport) +#endif + void bar(); int main(int ac, char** av) { |