summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ObjectLibrary/b.c
blob: 7549abf60e2a808baf93bbe7ef0d16de8996cf85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#if defined(_WIN32) && defined(COMPILE_FOR_SHARED_LIB)
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif

extern int a(void);
EXPORT int b()
{
  return a();
}
#ifndef REQUIRED
#error "REQUIRED needs to be defined"
#endif