Bochs/bochs-testing/plugin-test/test3-twomodules/module2.h
Bryce Denney 8f94d0a35b - rewrite DLL macros, now somewhat closer to how LT_SCOPE is written
in <ltdl.h>.  Now go back to Linux and test.
2002-10-11 16:09:21 +00:00

19 lines
459 B
C

#if defined(WIN32) || defined(__CYGWIN__)
# if defined(MODULE2_DLL_EXPORT) && defined(DLL_EXPORT)
# warning case 1
# define MODULE2API(type) __declspec(dllexport) type
# endif
# ifdef MODULE2_DLL_IMPORT
# 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 ();