https://github.com/Kitware/CMake
Raw File
Tip revision: 1a059d91af07993a02a85f4d6043a8e28742aab0 authored by Brad King on 18 November 2020, 11:34:00 UTC
CMake 3.18.5
Tip revision: 1a059d9
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