dev/c/cmake_lib/libmean/mean.c

13 lines
181 B
C
Raw Normal View History

#if defined (__BORLANDC__)
2012-05-26 12:29:12 +04:00
#define DLL_SPEC __declspec(dllexport)
#else
#define DLL_SPEC
#endif
#include "mean.h"
2012-05-22 13:53:04 +04:00
2012-05-26 12:29:12 +04:00
double DLL_SPEC
mean(double a, double b) {
2012-05-22 13:53:04 +04:00
return (a+b) / 2;
}