*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Thu, 09 Sep 1999 18:06:24 +0200
changeset 1231 ef5e46eea012
parent 1230 993aaef8a28a
child 1232 abb764f173ce
*** empty log message ***
libInit.cc
--- a/libInit.cc	Wed Sep 08 18:30:21 1999 +0200
+++ b/libInit.cc	Thu Sep 09 18:06:24 1999 +0200
@@ -4,12 +4,23 @@
  */
 #define __INDIRECTVMINITCALLS__
 #include <stc.h>
+#define INIT_TEXT_SECT /* as nothing */
 #ifdef WIN32
 # pragma codeseg INITCODE "INITCODE"
-#endif /* WIN32 */
-_libview2_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
+void _libview2_Init(pass, __pRT__, snd) INIT_TEXT_SECT;
+#endif
+void _libview2_Init(pass, __pRT__, snd)
 OBJ snd; struct __vmData__ *__pRT__; {
-__BEGIN_PACKAGE__("libview2", _libview2_Init);
+__BEGIN_PACKAGE2__("libview2", _libview2_Init, "stx:libview2");
 _ColorValue_Init(pass,__pRT__,snd);
 _Icon_Init(pass,__pRT__,snd);
 _DisplayObject_Init(pass,__pRT__,snd);