# HG changeset patch # User Claus Gittinger # Date 936893182 -7200 # Node ID 02a032b1098c6322078bb79d16355ee155d27e11 # Parent 6cf7a4c2dfce30b89fa6696096dab9dcdfc9004e *** empty log message *** diff -r 6cf7a4c2dfce -r 02a032b1098c libInit.cc --- a/libInit.cc Wed Sep 08 19:40:37 1999 +0200 +++ b/libInit.cc Thu Sep 09 18:06:22 1999 +0200 @@ -4,12 +4,23 @@ */ #define __INDIRECTVMINITCALLS__ #include +#define INIT_TEXT_SECT /* as nothing */ #ifdef WIN32 # pragma codeseg INITCODE "INITCODE" -#endif /* WIN32 */ -_libtool2_Init(pass, __pRT__, snd) +#else /* not WIN32 */ +# if defined(__GNUC__) +# if (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2 +# undef INIT_TEXT_SECT +# define INIT_TEXT_SECT __attribute__((section(".stxitext"))) +# endif +# endif /* not GNUC */ +#endif /* not WIN32 */ +#ifdef INIT_TEXT_SECT +extern void _libtool2_Init() INIT_TEXT_SECT; +#endif +void _libtool2_Init(pass, __pRT__, snd) OBJ snd; struct __vmData__ *__pRT__; { -__BEGIN_PACKAGE__("libtool2", _libtool2_Init); +__BEGIN_PACKAGE2__("libtool2", _libtool2_Init, "stx:libtool2"); _ColorMenu_Init(pass,__pRT__,snd); _FontMenu_Init(pass,__pRT__,snd); _MenuEditor_Init(pass,__pRT__,snd);