2002-10-11 15:29:32 +00:00
|
|
|
// set up MODULE1API macro for DLL export
|
|
|
|
#if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
|
|
|
|
# define MODULE1API(type) __declspec(dllexport) type __cdecl
|
|
|
|
#else
|
|
|
|
# define MODULE1API(type) type
|
|
|
|
#endif
|
|
|
|
|
2002-10-11 14:51:27 +00:00
|
|
|
#include "module1.h"
|
|
|
|
|
|
|
|
const char *module_name = "AddModule";
|
|
|
|
|
|
|
|
int operate (int a, int b)
|
|
|
|
{
|
|
|
|
return a + b;
|
|
|
|
}
|