2002-10-11 19:59:21 +04:00
|
|
|
#if defined(WIN32) || defined(__CYGWIN__)
|
2002-10-11 20:21:33 +04:00
|
|
|
# ifdef MODULE1_DLL_EXPORT
|
|
|
|
# ifdef DLL_EXPORT
|
|
|
|
# warning case 1
|
|
|
|
# define MODULE1API(type) __declspec(dllexport) type
|
|
|
|
# endif
|
|
|
|
# else
|
2002-10-11 19:59:21 +04:00
|
|
|
# warning case 2
|
|
|
|
# define MODULE1API(type) __declspec(dllimport) type
|
2002-10-11 19:29:32 +04:00
|
|
|
# endif
|
2002-10-11 18:51:27 +04:00
|
|
|
#endif
|
2002-10-11 19:59:21 +04:00
|
|
|
#ifndef MODULE1API
|
|
|
|
# warning case 3
|
|
|
|
# define MODULE1API(type) type
|
|
|
|
#endif
|
|
|
|
|
2002-10-11 18:51:27 +04:00
|
|
|
|
2002-10-11 19:29:32 +04:00
|
|
|
MODULE1API(extern const char *) module_name;
|
|
|
|
MODULE1API(extern int) operate (int a, int b);
|