libInit.cc
changeset 1825 795f29b80634
parent 1816 ba23256d5424
child 1832 c8d5f283493c
--- a/libInit.cc	Thu Jan 11 19:20:59 2007 +0100
+++ b/libInit.cc	Fri Jan 12 19:58:05 2007 +0100
@@ -1,25 +1,20 @@
 /*
- * $Header: /cvs/stx/stx/libbasic2/libInit.cc,v 1.68 2007-01-10 13:13:45 stefan Exp $
+ * $Header: /cvs/stx/stx/libbasic2/libInit.cc,v 1.69 2007-01-12 18:58:05 stefan Exp $
  *
  * DO NOT EDIT 
  * automagically generated from the projectDefinition: stx_libbasic2.
  */
 #define __INDIRECTVMINITCALLS__
 #include <stc.h>
-#define INIT_TEXT_SECT /* as nothing */
+
 #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 _libstx_libbasic2_Init() INIT_TEXT_SECT;
 #endif
+
+#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
+DLL_EXPORT void _libstx_libbasic2_Init() INIT_TEXT_SECTION;
+#endif
+
 void _libstx_libbasic2_Init(pass, __pRT__, snd)
 OBJ snd; struct __vmData__ *__pRT__; {
 __BEGIN_PACKAGE2__("libstx_libbasic2", _libstx_libbasic2_Init, "stx:libbasic2");