Bochs/bochs-testing/plugin-test/test10-modvirtual/main.h
Bryce Denney 855e2007a0 - add test10 in which each module creates its own child class of
DeviceInterface, and the main code talks to the devices using
  virtual methods of Device Interface.
2002-10-16 14:45:32 +00:00

19 lines
532 B
C

#if defined(WIN32) || defined(__CYGWIN__)
# ifdef MAIN_DLL_EXPORT
# ifdef DLL_EXPORT
# warning I will export DLL symbols for MODULE1
# define MAINAPI(type) __declspec(dllexport) type
# endif
# else
# warning I will import DLL symbols for MODULE1
# define MAINAPI(type) __declspec(dllimport) type
# endif
#endif
#ifndef MAINAPI
# warning No DLL import/export is needed
# define MAINAPI(type) type
#endif
MAINAPI(extern const char *) version_string;
MAINAPI(extern int) register_module (const char *name);