7f9c1489df
into macros. I got the idea for the MODULE1API(type) macros from expat.h that happens to be sitting on my disk. - modified: test2-dynamic/module1.cc test2-dynamic/module1.h test3-twomodules/module1.cc test3-twomodules/module1.h test3-twomodules/module2.cc test3-twomodules/module2.h test4-interdep/module1.cc test4-interdep/module1.h test4-interdep/module2.cc test4-interdep/module2.h
12 lines
312 B
C
12 lines
312 B
C
#ifndef MODULE1API
|
|
# if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
|
|
# define MODULE1API(type) __declspec(dllimport) type __cdecl
|
|
# else
|
|
# define MODULE1API(type) type
|
|
# endif
|
|
#endif
|
|
|
|
MODULE1API(extern const char *) module_name;
|
|
MODULE1API(extern int) operate (int a, int b);
|
|
|