https://github.com/Kitware/CMake
Raw File
Tip revision: 97073b19913827ad53b8df81af7bb7c5b98c60eb authored by Brad King on 01 June 2022, 13:53:26 UTC
CMake 3.21.7
Tip revision: 97073b1
b.c
#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
back to top