f4a7163433
define anything special. If you are not an exporter, then it now assumes that you are an importer. - modified: test2-dynamic/module1.h test2-dynamic/uselib.cc test3-twomodules/module1.h test3-twomodules/module2.h test3-twomodules/uselib.cc test4-interdep/module1.h test4-interdep/module2.h test4-interdep/uselib.cc
20 lines
438 B
C
20 lines
438 B
C
#if defined(WIN32) || defined(__CYGWIN__)
|
|
# ifdef MODULE2_DLL_EXPORT
|
|
# ifdef DLL_EXPORT
|
|
# warning case 1
|
|
# define MODULE2API(type) __declspec(dllexport) type
|
|
# endif
|
|
# else
|
|
# warning case 2
|
|
# define MODULE2API(type) __declspec(dllimport) type
|
|
# endif
|
|
#endif
|
|
#ifndef MODULE2API
|
|
# warning case 3
|
|
# define MODULE2API(type) type
|
|
#endif
|
|
|
|
MODULE2API(extern int) n_operations;
|
|
MODULE2API(void) operation_occurred ();
|
|
|