You put the macro before the function signature in the declaration.
namespace MyNamespace
{
XXX_API void MyFunc();
}
You put the macro before the function signature in the declaration.
namespace MyNamespace
{
XXX_API void MyFunc();
}