Bochs/bochs-testing/plugin-test/test3-twomodules/module2.h
Bryce Denney f4a7163433 - tweak DLL import/export macro so that the importer does not have to
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
2002-10-11 16:21:33 +00:00

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 ();