--- a/LibraryDefinition.st Tue Jan 16 13:49:27 2007 +0100
+++ b/LibraryDefinition.st Tue Jan 16 13:58:29 2007 +0100
@@ -209,21 +209,16 @@
* automagically generated from the projectDefinition: ',self name,'.
*/
#define __INDIRECTVMINITCALLS__
-#include <stc.h>
-#define INIT_TEXT_SECT /* as nothing */
+#include <stc.h> D
+
#ifdef WIN32
# pragma codeseg INITCODE "INITCODE"
-#else /* not WIN32 */
-# if defined(__GNUC__) && !!defined(NO_SECTION_ATTRIBUTES)
-# 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 _%(LIBRARY_NAME)_Init() INIT_TEXT_SECT;
+#endif
+
+#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
+DLL_EXPORT void _%(LIBRARY_NAME)_Init() INIT_TEXT_SECTION;
#endif
+
void _%(LIBRARY_NAME)_Init(pass, __pRT__, snd)
OBJ snd; struct __vmData__ *__pRT__; {
__BEGIN_PACKAGE2__("%(LIBRARY_NAME)", _%(LIBRARY_NAME)_Init, "%(PACKAGE)");
@@ -611,5 +606,5 @@
!LibraryDefinition class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.75 2007-01-12 18:45:10 stefan Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.76 2007-01-16 12:58:29 stefan Exp $'
! !