summaryrefslogtreecommitdiffstats
path: root/Tests/ObjectLibrary/mainAB.c
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-08 19:10:22 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-02-08 19:10:22 (GMT)
commitfaa927e273e04b9aadc13fb1f2b8b307b7383cd2 (patch)
treec6b6764c2d46c0a47e42cee2249391ca8f7a2747 /Tests/ObjectLibrary/mainAB.c
parent510fdcb18801076e2041eaae2941375eecc93ec2 (diff)
downloadCMake-faa927e273e04b9aadc13fb1f2b8b307b7383cd2.zip
CMake-faa927e273e04b9aadc13fb1f2b8b307b7383cd2.tar.gz
CMake-faa927e273e04b9aadc13fb1f2b8b307b7383cd2.tar.bz2
Make sure INTERFACE properties work with OBJECT libraries.
Diffstat (limited to 'Tests/ObjectLibrary/mainAB.c')
-rw-r--r--Tests/ObjectLibrary/mainAB.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/Tests/ObjectLibrary/mainAB.c b/Tests/ObjectLibrary/mainAB.c
index 556898b..38db205 100644
--- a/Tests/ObjectLibrary/mainAB.c
+++ b/Tests/ObjectLibrary/mainAB.c
@@ -1,8 +1,6 @@
-#if defined(_WIN32) && defined(SHARED_B)
-# define IMPORT_B __declspec(dllimport)
-#else
-# define IMPORT_B
-#endif
+
+#include "b.h"
+
extern IMPORT_B int b1(void);
extern IMPORT_B int b2(void);
#ifndef NO_A