#if defined (__BORLANDC__) #define DLL_SPEC __declspec(dllexport) #else #define DLL_SPEC #endif #include "mean.h" double DLL_SPEC mean(double a, double b) { return (a+b) / 2; }