typedef struct dlxheader { long magic; long numimports; long numrelocs; long libmainpos; long extablepos; long libloadpos; long prgsize; }; #define DLX_MAGIC 0x584c44 #ifdef __cplusplus #define DLXUSE_BEGIN extern "C" { #define DLXUSE_END } #define DLX_FN extern "C" { #define DLX_EF } #define DLX_IMPORT extern "C" { #define DLX_ENDIMPORT } #else #define DLXUSE_BEGIN #define DLXUSE_END #define DLX_FN #define DLX_EF #define DLX_IMPORT #define DLX_ENDIMPORT #endif #define LIBLOADS_BEGIN char* _LIBTOLOAD[]={ #define LIBLOADS_END "\0\0"}; #define LIBEXPORT_BEGIN char* _LIBEXPORTTABLE[]= { #define LIBEXPORT_END "\0\0"}; #define LIBEXPORT(x) "_"#x, (char *)x, #define LIBLOAD(x) #x,