2002-10-15 00:34:13 +04:00
|
|
|
#if defined(WIN32) || defined(__CYGWIN__)
|
|
|
|
# ifdef MAIN_DLL_EXPORT
|
|
|
|
# ifdef DLL_EXPORT
|
2002-10-15 00:43:33 +04:00
|
|
|
# warning I will export DLL symbols for MAIN
|
|
|
|
# define MAINAPI __declspec(dllexport)
|
2002-10-15 00:34:13 +04:00
|
|
|
# endif
|
|
|
|
# else
|
2002-10-15 00:43:33 +04:00
|
|
|
# warning I will import DLL symbols from MAIN
|
|
|
|
# define MAINAPI __declspec(dllimport)
|
2002-10-15 00:34:13 +04:00
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
#ifndef MAINAPI
|
2002-10-15 00:43:33 +04:00
|
|
|
# define MAINAPI
|
2002-10-15 00:34:13 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef void (*modload_func)(void);
|
|
|
|
|
2002-10-15 00:43:33 +04:00
|
|
|
MAINAPI extern const char * version_string;
|
|
|
|
MAINAPI extern int register_module (const char *name);
|
2002-10-15 00:34:13 +04:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
// this prevents C++ name mangling
|
|
|
|
void module_init ();
|
|
|
|
};
|