summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ObjectLibrary/b.c
blob: 2c65a2b433ee496a18aa8647727956babc41c02b (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(void)
{
  return a();
}
#ifndef REQUIRED
#  error "REQUIRED needs to be defined"
#endif