diff options
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary/a.c')
-rw-r--r-- | Tests/RunCMake/ObjectLibrary/a.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/a.c b/Tests/RunCMake/ObjectLibrary/a.c index 1636303..8e490f3 100644 --- a/Tests/RunCMake/ObjectLibrary/a.c +++ b/Tests/RunCMake/ObjectLibrary/a.c @@ -1,4 +1,10 @@ -int a(void) +#if defined(_WIN32) && defined(COMPILE_FOR_SHARED_LIB) +# define EXPORT __declspec(dllexport) +#else +# define EXPORT +#endif + +EXPORT int a(void) { return 0; } |